From c7f19ff4c003cd853a1da1be55b8083d3cf0fb28 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Mon, 11 May 2015 03:31:04 +0000 Subject: [PATCH] [FAST486] In HLT, check the CPL and not CS.DPL. svn path=/trunk/; revision=67650 --- reactos/lib/fast486/opcodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/fast486/opcodes.c b/reactos/lib/fast486/opcodes.c index 5054780f844..8ebbc6156c1 100644 --- a/reactos/lib/fast486/opcodes.c +++ b/reactos/lib/fast486/opcodes.c @@ -853,7 +853,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeHalt) } /* Privileged instructions can only be executed under CPL = 0 */ - if (State->SegmentRegs[FAST486_REG_CS].Dpl != 0) + if (Fast486GetCurrentPrivLevel(State) != 0) { Fast486Exception(State, FAST486_EXCEPTION_GP); return;