From 3e9aa4c71ddd15a83fd30a985a707b8e908e65ea Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Thu, 6 Nov 2014 20:47:31 +0000 Subject: [PATCH] [FAST486] Update the CPL when performing an interrupt. svn path=/trunk/; revision=65300 --- reactos/lib/fast486/common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/lib/fast486/common.c b/reactos/lib/fast486/common.c index a16b5914e41..294debdecfd 100644 --- a/reactos/lib/fast486/common.c +++ b/reactos/lib/fast486/common.c @@ -310,8 +310,11 @@ Fast486InterruptInternal(PFAST486_STATE State, goto Cleanup; } + /* Switch to the new privilege level */ + State->Cpl = GET_SEGMENT_RPL(SegmentSelector); + /* Check the new (higher) privilege level */ - switch (GET_SEGMENT_RPL(SegmentSelector)) + switch (State->Cpl) { case 0: {