mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[NCI]
- Fix 64bit stubs [RSYM64] - fix linux compilation svn path=/trunk/; revision=46410
This commit is contained in:
parent
63dd61cc3d
commit
bdc2ba7816
2 changed files with 8 additions and 2 deletions
|
@ -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 @@ struct ncitool_data_t ncitool_data[] = {
|
|||
{ "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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue