mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
add QNX ARM support
This is untested so far, since I haven't figured out how to install the ARM port of QNX on QEMU.
This commit is contained in:
parent
cace9d4531
commit
4bafdf6286
6
makefile
6
makefile
@ -318,7 +318,11 @@ ifeq ($(platform),qnx)
|
||||
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
||||
build-lflags = $(common-lflags)
|
||||
else
|
||||
prefix = i486-pc-nto-qnx6.5.0-
|
||||
ifeq ($(arch),i386)
|
||||
prefix = i486-pc-nto-qnx6.5.0-
|
||||
else
|
||||
prefix = arm-unknown-nto-qnx6.5.0-
|
||||
endif
|
||||
endif
|
||||
cxx = $(prefix)g++
|
||||
cc = $(prefix)gcc
|
||||
|
@ -44,7 +44,12 @@
|
||||
THREAD_STATE_THREAD(context->uc_mcontext->FIELD(ss))
|
||||
# define LINK_REGISTER(context) \
|
||||
THREAD_STATE_LINK(context->uc_mcontext->FIELD(ss))
|
||||
#else // not __APPLE__
|
||||
#elif (defined __QNX__)
|
||||
# define IP_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_PC])
|
||||
# define STACK_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_SP])
|
||||
# define THREAD_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_IP])
|
||||
# define LINK_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_LR])
|
||||
#else
|
||||
# define IP_REGISTER(context) (context->uc_mcontext.arm_pc)
|
||||
# define STACK_REGISTER(context) (context->uc_mcontext.arm_sp)
|
||||
# define THREAD_REGISTER(context) (context->uc_mcontext.arm_ip)
|
||||
|
Loading…
Reference in New Issue
Block a user