summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/libpayload/arch/x86/exception.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/x86/exception.c b/payloads/libpayload/arch/x86/exception.c
index f6bb8c9ccf..b562660910 100644
--- a/payloads/libpayload/arch/x86/exception.c
+++ b/payloads/libpayload/arch/x86/exception.c
@@ -59,7 +59,7 @@ static const char *names[EXC_COUNT] = {
static void print_segment_error_code(u32 code)
{
- printf("%#x - descriptor %#x in the ", code, (code >> 3) & 0x1f);
+ printf("%#x - descriptor %#x in the ", code, (code >> 3) & 0x1FFF);
if (code & (0x1 << 1)) {
printf("IDT");
} else {