\r
int settimer_initialized;\r
struct timeval settimer_timeval;\r
-void (*settimer_callback)(UINT64 delta);\r
+UINTN settimer_callback = 0;\r
\r
BOOLEAN gEmulatorInterruptEnabled = FALSE;\r
\r
if (setitimer (ITIMER_REAL, &timerval, NULL) != 0) {\r
printf ("SetTimer: setitimer error %s\n", strerror (errno));\r
}\r
- settimer_callback = CallBack;\r
+ settimer_callback = (UINTN)CallBack;\r
}\r
\r
\r
/** @file\r
\r
Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
- Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
\r
UINTN\r
ReverseGasketUint64 (\r
- CALL_BACK CallBack,\r
+ UINTN CallBack,\r
UINT64 a\r
);\r
\r
# Entry Point of Emu Emulator\r
#\r
# Main executable file of Unix Emulator that loads PEI core after initialization finished.\r
-# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2019, Intel Corporation. All rights reserved.<BR>\r
# Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
# Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version\r
#\r
XCODE:*_*_IA32_DLINK_PATH == gcc\r
- XCODE:*_*_IA32_CC_FLAGS == -arch i386 -O0 -g -include $(DEST_DIR_DEBUG)/AutoGen.h -c -fshort-wchar -fno-strict-aliasing\r
+ XCODE:*_*_IA32_CC_FLAGS = -I$(WORKSPACE)/EmulatorPkg/Unix/Host/X11IncludeHack\r
XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon\r
XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g\r
\r
XCODE:*_*_X64_DLINK_PATH == gcc\r
- XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon\r
+ XCODE:*_*_X64_DLINK_FLAGS == -L/usr/X11R6/lib -lXext -lX11 -framework Carbon -Wl,-no_pie\r
XCODE:*_*_X64_ASM_FLAGS == -g\r
- XCODE:*_*_X64_CC_FLAGS = -I$(WORKSPACE)/EmulatorPkg/Unix/Host/X11IncludeHack\r
+ XCODE:*_*_X64_CC_FLAGS = -target x86_64-apple-darwin -I$(WORKSPACE)/EmulatorPkg/Unix/Host/X11IncludeHack "-DEFIAPI=__attribute__((ms_abi))"\r
POSIX Pthreads to emulate APs and implement threads\r
\r
Copyright (c) 2011, Apple Inc. All rights reserved.\r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
// This is a great example of how all problems in computer\r
// science can be solved by adding another level of indirection\r
//\r
- return (VOID *)ReverseGasketUint64 ((CALL_BACK)Start, (UINTN)Context);\r
+ return (VOID *)ReverseGasketUint64 ((UINTN)Start, (UINTN)Context);\r
}\r
\r
UINTN\r