From 52ec0a25bf1d2823e274593103ff31b78d7279e5 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Mon, 4 Mar 2024 23:11:40 +0200 Subject: [PATCH] Fix incorrect condition in HandleException function --- core/panic/handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/panic/handler.cpp b/core/panic/handler.cpp index 6dc5668..b78c1c8 100644 --- a/core/panic/handler.cpp +++ b/core/panic/handler.cpp @@ -249,7 +249,7 @@ nsa void HandleException(CPU::ExceptionFrame *Frame) HandleUnrecoverableException(Frame); } - if (Frame->cs == GDT_USER_CODE && Frame->cs == GDT_USER_DATA) + if (Frame->cs == GDT_USER_CODE && Frame->ss == GDT_USER_DATA) { if (UserModeExceptionHandler(Frame)) goto ExceptionExit;