From 951b20149d1cc4954863a76469ce152c1f453958 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 13 Dec 2023 12:07:43 -0500 Subject: kernel/amd64: tss: Fix broken TSS code This commit fixes some horribly broken TSS code. It is unclear how it got this broken. Signed-off-by: Ian Moffett --- sys/include/arch/amd64/tss.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/include/arch/amd64') diff --git a/sys/include/arch/amd64/tss.h b/sys/include/arch/amd64/tss.h index 502cf9e..90f6289 100644 --- a/sys/include/arch/amd64/tss.h +++ b/sys/include/arch/amd64/tss.h @@ -86,7 +86,7 @@ struct __packed tss_entry { struct __packed tss_desc { uint16_t seglimit; uint16_t base_lo16; - uint8_t base_mid24; + uint8_t base_mid8; uint8_t type : 4; uint8_t zero : 1; uint8_t dpl : 2; @@ -95,7 +95,7 @@ struct __packed tss_desc { uint8_t avl : 1; uint8_t unused : 2; uint8_t g : 1; - uint8_t base_mid32; + uint8_t base_hi_mid8; uint32_t base_hi32; uint32_t reserved; }; -- cgit v1.2.3