From ea6edc618df893c5ab82d9f580191b4a9c59258a Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sun, 25 Mar 2007 14:31:03 +0000 Subject: [PATCH] More 26160-style fixes (mandatory addressing of PCR via FS register). Alex & Dmitry - please check this, just in case. svn path=/trunk/; revision=26166 --- reactos/ntoskrnl/include/internal/i386/asmmacro.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/include/internal/i386/asmmacro.S b/reactos/ntoskrnl/include/internal/i386/asmmacro.S index 88b036929cb..73b72994723 100644 --- a/reactos/ntoskrnl/include/internal/i386/asmmacro.S +++ b/reactos/ntoskrnl/include/internal/i386/asmmacro.S @@ -263,7 +263,7 @@ Dr_&Label: mov dr7, ebx /* Get the PRCB */ - mov edi, PCR[KPCR_PRCB] + mov edi, fs:[KPCR_PRCB] /* Get DR0, 1 */ mov ebx, [edi+KPRCB_DR0] @@ -563,10 +563,10 @@ V86_&EndLabel: 1: /* Get the previous exception list */ - mov ebx, PCR[KPCR_EXCEPTION_LIST] + mov ebx, fs:[KPCR_EXCEPTION_LIST] /* Set the exception handler chain terminator */ - mov dword ptr PCR[KPCR_EXCEPTION_LIST], -1 + mov dword ptr fs:[KPCR_EXCEPTION_LIST], -1 /* Save the previous exception list */ mov [esp+KTRAP_FRAME_EXCEPTION_LIST], ebx @@ -838,7 +838,7 @@ Dr_&EndLabel: cld /* Save the exception list */ - mov eax, PCR[KPCR_EXCEPTION_LIST] + mov eax, fs:[KPCR_EXCEPTION_LIST] mov [esp+KTRAP_FRAME_EXCEPTION_LIST], eax /* Check if we need debugging */