mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-19 19:30:42 +00:00
commit
db877c0443
@ -907,14 +907,14 @@ enum {
|
|||||||
X86_REG_R13 = REG_R13,
|
X86_REG_R13 = REG_R13,
|
||||||
X86_REG_R14 = REG_R14,
|
X86_REG_R14 = REG_R14,
|
||||||
X86_REG_R15 = REG_R15,
|
X86_REG_R15 = REG_R15,
|
||||||
X86_REG_EDI = EDI,
|
X86_REG_EDI = REG_RDI,
|
||||||
X86_REG_ESI = ESI,
|
X86_REG_ESI = REG_RSI,
|
||||||
X86_REG_EBP = EBP,
|
X86_REG_EBP = REG_RBP,
|
||||||
X86_REG_EBX = EBX,
|
X86_REG_EBX = REG_RBX,
|
||||||
X86_REG_EDX = EDX,
|
X86_REG_EDX = REG_RDX,
|
||||||
X86_REG_EAX = EAX,
|
X86_REG_EAX = REG_RAX,
|
||||||
X86_REG_ECX = ECX,
|
X86_REG_ECX = REG_RCX,
|
||||||
X86_REG_ESP = ESP,
|
X86_REG_ESP = REG_RSP,
|
||||||
X86_REG_EIP = REG_RIP
|
X86_REG_EIP = REG_RIP
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -86,7 +86,7 @@ typedef unsigned long vm_uintptr_t;
|
|||||||
#define MAP_EXTRA_FLAGS (MAP_32BIT)
|
#define MAP_EXTRA_FLAGS (MAP_32BIT)
|
||||||
|
|
||||||
#ifdef HAVE_MMAP_VM
|
#ifdef HAVE_MMAP_VM
|
||||||
#if (defined(__linux__) && defined(__i386__)) || defined(__FreeBSD__) || defined(__NetBSD__) || HAVE_LINKER_SCRIPT
|
#if (defined(__linux__) && defined(__i386__)) || defined(__sun__) || defined(__FreeBSD__) || defined(__NetBSD__) || HAVE_LINKER_SCRIPT
|
||||||
/* Force a reasonnable address below 0x80000000 on x86 so that we
|
/* Force a reasonnable address below 0x80000000 on x86 so that we
|
||||||
don't get addresses above when the program is run on AMD64.
|
don't get addresses above when the program is run on AMD64.
|
||||||
NOTE: this is empirically determined on Linux/x86. */
|
NOTE: this is empirically determined on Linux/x86. */
|
||||||
|
@ -39,6 +39,11 @@
|
|||||||
#ifdef HAVE_SYS_POLL_H
|
#ifdef HAVE_SYS_POLL_H
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __sun__
|
||||||
|
#define BSD_COMP 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ RCSID("$OpenBSD: sshpty.c,v 1.4 2001/12/19 07:18:56 deraadt Exp $");
|
|||||||
#endif /* not in BasiliskII */
|
#endif /* not in BasiliskII */
|
||||||
|
|
||||||
#ifdef __sun__
|
#ifdef __sun__
|
||||||
#define mysig_t sig_atomic_t
|
#define mysig_t void*
|
||||||
#else
|
#else
|
||||||
#define mysig_t sig_t
|
#define mysig_t sig_t
|
||||||
#endif
|
#endif
|
||||||
|
@ -907,14 +907,14 @@ enum {
|
|||||||
X86_REG_R13 = REG_R13,
|
X86_REG_R13 = REG_R13,
|
||||||
X86_REG_R14 = REG_R14,
|
X86_REG_R14 = REG_R14,
|
||||||
X86_REG_R15 = REG_R15,
|
X86_REG_R15 = REG_R15,
|
||||||
X86_REG_EDI = EDI,
|
X86_REG_EDI = REG_RDI,
|
||||||
X86_REG_ESI = ESI,
|
X86_REG_ESI = REG_RSI,
|
||||||
X86_REG_EBP = EBP,
|
X86_REG_EBP = REG_RBP,
|
||||||
X86_REG_EBX = EBX,
|
X86_REG_EBX = REG_RBX,
|
||||||
X86_REG_EDX = EDX,
|
X86_REG_EDX = REG_RDX,
|
||||||
X86_REG_EAX = EAX,
|
X86_REG_EAX = REG_RAX,
|
||||||
X86_REG_ECX = ECX,
|
X86_REG_ECX = REG_RCX,
|
||||||
X86_REG_ESP = ESP,
|
X86_REG_ESP = REG_RSP,
|
||||||
X86_REG_EIP = REG_RIP
|
X86_REG_EIP = REG_RIP
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user