efirt: Fix the TDP_EFIRT assertion

(cherry picked from commit 07593d13fa2ad6fe4d962b7473c6020aef2a0414)
This commit is contained in:
Mark Johnston 2024-11-22 14:19:37 +00:00 committed by Konstantin Belousov
parent 5f5b47e374
commit 1c65ea2884

View file

@ -323,7 +323,7 @@ efi_leave(void)
pmap_t curpmap;
td = curthread;
MPASS((td->td_pflags2 & TDP2_EFIRT) == 0);
MPASS((td->td_pflags2 & TDP2_EFIRT) != 0);
td->td_pflags2 &= ~TDP2_EFIRT;
efi_arch_leave();