[ipxe-devel] [ipxe/ipxe] [efi] Restore the TPL to the original one (#113)

JamesWangAmiTw notifications at github.com
Wed Jul 1 09:07:23 UTC 2020


@mcb30 

Sorry for not being specific in my [previous comment](https://github.com/ipxe/ipxe/pull/113#issuecomment-651511355).  I didn't mean TPL is never restored anywhere but it was changed in timer event.

When OS image starts, is the `efi_currticks()` still active?  
I assume it only stops when `efi_tick_shutdown()` is called.

So when `efi_snp_release()` the TPL is restored but what happen when `efi_currticks()` is triggered after `efi_snp_release()`?
If so the TPL can still be TPL_CALLBACK before `ExitBootService()`

And `efi_tick_shutdown()` itself is a NotifyFunction of `EVT_SIGNAL_EXIT_BOOT_SERVICES`.
If `EVT_SIGNAL_EXIT_BOOT_SERVICES` is signaled and TPL = `TPL_CALLBACK`, `efi_tick_shutdown()` will not be called because of the same TPL.

James

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/113#issuecomment-652294759
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20200701/3044bb07/attachment.htm>


More information about the ipxe-devel mailing list