45 |
|
#include "name_registry.h" |
46 |
|
#include "user_strings.h" |
47 |
|
#include "emul_op.h" |
48 |
+ |
#include "thunks.h" |
49 |
|
|
50 |
|
#define DEBUG 0 |
51 |
|
#include "debug.h" |
261 |
|
// Patch MakeExecutable() |
262 |
|
MakeExecutableTvec = (uint32 *)FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable"); |
263 |
|
D(bug("MakeExecutable TVECT at %p\n", MakeExecutableTvec)); |
264 |
< |
#if EMULATED_PPC |
265 |
< |
MakeExecutableTvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_MAKE_EXECUTABLE)); |
265 |
< |
#else |
266 |
< |
#ifdef __BEOS__ |
267 |
< |
MakeExecutableTvec[0] = ((uint32 *)MakeExecutable)[0]; |
268 |
< |
#else |
269 |
< |
MakeExecutableTvec[0] = (uint32)MakeExecutable; |
270 |
< |
#endif |
264 |
> |
MakeExecutableTvec[0] = htonl(NativeFunction(NATIVE_MAKE_EXECUTABLE)); |
265 |
> |
#if !EMULATED_PPC |
266 |
|
MakeExecutableTvec[1] = (uint32)TOC; |
267 |
|
#endif |
268 |
|
|