mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL]
Fix build with MSVC svn path=/branches/cmake-bringup/; revision=50692
This commit is contained in:
parent
e29077a3cf
commit
0ea1c67bac
4 changed files with 10 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
|
||||
#ifdef _M_IX86
|
||||
EXTERN _KiSystemService:PROC
|
||||
#define KUSER_SHARED_SYSCALL HEX(7ffe0300)
|
||||
#define KGDT_R0_CODE 8
|
||||
MACRO(STUBCODE_U, SyscallId, StackBytes)
|
||||
|
@ -17,6 +18,7 @@ MACRO(STUBCODE_K, SyscallId, StackBytes)
|
|||
ret StackBytes
|
||||
ENDM
|
||||
#elif defined(_M_AMD64)
|
||||
EXTERN KiSystemService:PROC
|
||||
MACRO(STUBCODE_U, SyscallId, StackBytes)
|
||||
mov eax, SyscallId
|
||||
mov r10, rcx
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#include <asm.inc>
|
||||
#include <syscalls.inc>
|
||||
|
||||
EXTERN _KiSystemService
|
||||
|
||||
.code
|
||||
|
||||
SyscallId = 0
|
||||
|
|
|
@ -138,7 +138,7 @@ MACRO(KiEnterTrap, Flags)
|
|||
if (Flags AND KI_DONT_SAVE_SEGS)
|
||||
|
||||
/* Initialize TrapFrame segment registers with sane values */
|
||||
mov eax, 0x23
|
||||
mov eax, KGDT_R3_DATA OR 3
|
||||
mov ecx, fs
|
||||
mov [esp + KTRAP_FRAME_DS], eax
|
||||
mov [esp + KTRAP_FRAME_ES], eax
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
EXTERN _MmGrowKernelStack@4:PROC
|
||||
EXTERN _KeUserCallbackDispatcher:PROC
|
||||
EXTERN @KiServiceExit@8:PROC
|
||||
EXTERN _KeGetCurrentIrql@0:PROC
|
||||
EXTERN _KeBugCheckEx@20:PROC
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
.code
|
||||
|
|
Loading…
Reference in a new issue