<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/mcb30/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mcb30">@mcb30</a></p>
<p>Sorry for not being specific in my <a href="https://github.com/ipxe/ipxe/pull/113#issuecomment-651511355" data-hovercard-type="pull_request" data-hovercard-url="/ipxe/ipxe/pull/113/hovercard">previous comment</a>.  I didn't mean TPL is never restored anywhere but it was changed in timer event.</p>
<p>When OS image starts, is the <code>efi_currticks()</code> still active?<br>
I assume it only stops when <code>efi_tick_shutdown()</code> is called.</p>
<p>So when <code>efi_snp_release()</code> the TPL is restored but what happen when <code>efi_currticks()</code> is triggered after <code>efi_snp_release()</code>?<br>
If so the TPL can still be TPL_CALLBACK before <code>ExitBootService()</code></p>
<p>And <code>efi_tick_shutdown()</code> itself is a NotifyFunction of <code>EVT_SIGNAL_EXIT_BOOT_SERVICES</code>.<br>
If <code>EVT_SIGNAL_EXIT_BOOT_SERVICES</code> is signaled and TPL = <code>TPL_CALLBACK</code>, <code>efi_tick_shutdown()</code> will not be called because of the same TPL.</p>
<p>James</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/ipxe/ipxe/pull/113#issuecomment-652294759">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAFNGVBZIMBQOTV2IEHQ443RZL4EXANCNFSM4NMSFYRA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAFNGVAUGBPTRGX7JIURUB3RZL4EXA5CNFSM4NMSFYRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE3QTUZY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ipxe/ipxe/pull/113#issuecomment-652294759",
"url": "https://github.com/ipxe/ipxe/pull/113#issuecomment-652294759",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>