/* INCLUDES ******************************************************************/\r
\r
#include <ndk/asm.h>\r
-#include <ndk/i386/segment.h>\r
.intel_syntax noprefix\r
\r
#define EXCEPTION_NONCONTINUABLE 1\r
sub esp, SIZEOF_EXCEPTION_RECORD\r
\r
/* Fill out the record */\r
- mov eax, [fs:TEB_SELECTOR]\r
+ mov eax, [fs:KPCR_TEB]\r
mov eax, [eax+TEB_EXCEPTION_CODE]\r
mov [esp+EXCEPTION_RECORD_EXCEPTION_CODE], eax\r
mov dword ptr [esp+EXCEPTION_RECORD_EXCEPTION_FLAGS], 0\r