From 0aaed0f7382452be402ff31e281af42554b48156 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 21 Aug 2008 21:10:17 +0000 Subject: [PATCH] Update syscall stubs svn path=/branches/ros-amd64-bringup/; revision=35517 --- reactos/tools/nci/ncitool.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/reactos/tools/nci/ncitool.c b/reactos/tools/nci/ncitool.c index 543b4c732b7..d3d89014a85 100644 --- a/reactos/tools/nci/ncitool.c +++ b/reactos/tools/nci/ncitool.c @@ -53,9 +53,9 @@ " call *(%%ecx)\n" \ " ret $0x%x\n\n" -#define UserModeStub_amd64 " movq $0x%x, %%rax\n" \ - " movq $KUSER_SHARED_SYSCALL, %%rcx\n" \ - " call *(%%rcx)\n" \ +#define UserModeStub_amd64 " movl $0x%x, %%eax\n" \ + " movq %%rcx, %%r10\n" \ + " syscall\n" \ " ret $0x%x\n\n" #define UserModeStub_ppc " stwu 1,-16(1)\n" \ @@ -99,10 +99,7 @@ " call _KiSystemService\n" \ " ret $0x%x\n\n" -#define KernelModeStub_amd64 " movq $0x%x, %%rax\n" \ - " leaq 4(%%rsp), %%rdx\n" \ - " pushfq\n" \ - " pushq $KGDT_R0_CODE\n" \ +#define KernelModeStub_amd64 " movl $0x%x, %%eax\n" \ " call _KiSystemService\n" \ " ret $0x%x\n\n"