Author: tkreuzer
Date: Thu Mar 25 00:03:33 2010
New Revision: 46410
URL:
http://svn.reactos.org/svn/reactos?rev=46410&view=rev
Log:
[NCI]
- Fix 64bit stubs
[RSYM64]
- fix linux compilation
Modified:
trunk/reactos/tools/nci/ncitool.c
trunk/reactos/tools/rsym/rsym64.h
Modified: trunk/reactos/tools/nci/ncitool.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/nci/ncitool.c?rev=46…
==============================================================================
--- trunk/reactos/tools/nci/ncitool.c [iso-8859-1] (original)
+++ trunk/reactos/tools/nci/ncitool.c [iso-8859-1] Thu Mar 25 00:03:33 2010
@@ -103,7 +103,7 @@
" ret $0x%x\n\n"
#define KernelModeStub_amd64 " movl $0x%x, %%eax\n" \
- " call _KiSystemService\n" \
+ " call KiSystemService\n" \
" ret $0x%x\n\n"
/* For now, use the usermode stub. We'll optimize later */
@@ -143,7 +143,7 @@
{ "i386", 4, KernelModeStub_x86, UserModeStub_x86,
".global _%s@%d\n", "_%s@%d:\n" },
{ "amd64", 4, KernelModeStub_amd64, UserModeStub_amd64,
- ".global _%s\n", "_%s:\n" },
+ ".global %s\n", "%s:\n" },
{ "powerpc", 4, KernelModeStub_ppc, UserModeStub_ppc,
"\t.globl %s\n", "%s:\n" },
{ "mips", 4, KernelModeStub_mips, UserModeStub_mips,
Modified: trunk/reactos/tools/rsym/rsym64.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym/rsym64.h?rev=46…
==============================================================================
--- trunk/reactos/tools/rsym/rsym64.h [iso-8859-1] (original)
+++ trunk/reactos/tools/rsym/rsym64.h [iso-8859-1] Thu Mar 25 00:03:33 2010
@@ -2,7 +2,13 @@
//C_ASSERT(sizeof(ULONG) == 4);
typedef unsigned char UBYTE;
+#if defined(_MSC_VER) || defined(__MINGW32__)
typedef unsigned __int64 ULONG64;
+#else
+#include <stdint.h>
+typedef uint64_t ULONG64;
+#endif
+
#define IMAGE_FILE_MACHINE_AMD64 0x8664
#define IMAGE_DIRECTORY_ENTRY_IMPORT 1