diff options
| author | Toomas Soome <tsoome@FreeBSD.org> | 2026-02-21 08:49:34 +0000 |
|---|---|---|
| committer | Toomas Soome <tsoome@FreeBSD.org> | 2026-02-21 08:49:34 +0000 |
| commit | dc11af08a4983237a90c3500ecf500ed41b0802b (patch) | |
| tree | 05aeafa2cd9b210d79d79e712c9dc7c6c314abb0 | |
| parent | 503374af390eb84ec72167ab0be4751b2fe0a446 (diff) | |
loader.efi: tss_pa setup seems to be flawed in trap.c
since sd_lobase is 24 bits, we would need to shift 24 bits, not 16.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D55178
| -rw-r--r-- | stand/efi/loader/arch/amd64/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/efi/loader/arch/amd64/trap.c b/stand/efi/loader/arch/amd64/trap.c index 671321be3628..97e78ecccf22 100644 --- a/stand/efi/loader/arch/amd64/trap.c +++ b/stand/efi/loader/arch/amd64/trap.c @@ -329,7 +329,7 @@ efi_redirect_exceptions(void) free_tables(); return (0); } - tss_pa = tss_desc->sd_lobase + (tss_desc->sd_hibase << 16); + tss_pa = tss_desc->sd_lobase + (tss_desc->sd_hibase << 24); tss = (struct amd64tss *)tss_pa; tss_desc->sd_type = SDT_SYSTSS; /* unbusy */ } |
