diff options
| author | Warner Losh <imp@FreeBSD.org> | 2025-05-30 14:14:15 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-05-30 15:56:50 +0000 |
| commit | 700a2c08dceab4dc41859e5c1501ec3b186f6cbd (patch) | |
| tree | 48db9ac23f2e6f65670b502c08aa5bd891e49bc6 /stand/efi | |
| parent | 537fbf70f12b014d68fc087ee6e254523c73d489 (diff) | |
Diffstat (limited to 'stand/efi')
| -rw-r--r-- | stand/efi/loader/arch/amd64/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/efi/loader/arch/amd64/trap.c b/stand/efi/loader/arch/amd64/trap.c index 95a42a18f719..61feb76e2dca 100644 --- a/stand/efi/loader/arch/amd64/trap.c +++ b/stand/efi/loader/arch/amd64/trap.c @@ -356,7 +356,7 @@ efi_redirect_exceptions(void) PREPARE_EXCEPTION(19); PREPARE_EXCEPTION(20); - exc_rsp = exc_stack_pa + PAGE_SIZE - + exc_rsp = exc_stack_pa + EFI_PAGE_SIZE - (6 /* hw exception frame */ + 3 /* scratch regs */) * 8; /* Find free IST and use it */ @@ -376,7 +376,7 @@ efi_redirect_exceptions(void) if (intercepted[i]) loader_idt_e->gd_ist = ist; } - (&(tss->tss_ist1))[ist - 1] = exc_stack_pa + PAGE_SIZE; + (&(tss->tss_ist1))[ist - 1] = exc_stack_pa + EFI_PAGE_SIZE; /* Switch to new IDT */ rfl = intr_disable(); |
