mirror of
https://github.com/corda/corda.git
synced 2025-04-25 05:19:44 +00:00
Revert "fix unused variable warning for non-hardfloat ARM systems"
This reverts commit 5270db52c7b2d92417160f6234a544d4c5a9c0fb.
This commit is contained in:
parent
5270db52c7
commit
7467ebde13
@ -45,8 +45,6 @@
|
|||||||
# define LINK_REGISTER(context) \
|
# define LINK_REGISTER(context) \
|
||||||
THREAD_STATE_LINK(context->uc_mcontext->FIELD(ss))
|
THREAD_STATE_LINK(context->uc_mcontext->FIELD(ss))
|
||||||
#elif (defined __QNX__)
|
#elif (defined __QNX__)
|
||||||
# include "arm/smpxchg.h"
|
|
||||||
|
|
||||||
# define IP_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_PC])
|
# 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 STACK_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_SP])
|
||||||
# define THREAD_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_IP])
|
# define THREAD_REGISTER(context) (context->uc_mcontext.cpu.gpr[ARM_REG_IP])
|
||||||
@ -119,8 +117,6 @@ atomicCompareAndSwap32(uint32_t* p, uint32_t old, uint32_t new_)
|
|||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
return OSAtomicCompareAndSwap32(old, new_, reinterpret_cast<int32_t*>(p));
|
return OSAtomicCompareAndSwap32(old, new_, reinterpret_cast<int32_t*>(p));
|
||||||
#elif (defined __QNX__)
|
|
||||||
return old == _smp_cmpxchg(p, old, new_);
|
|
||||||
#else
|
#else
|
||||||
int r = __kernel_cmpxchg(static_cast<int>(old), static_cast<int>(new_), reinterpret_cast<int*>(p));
|
int r = __kernel_cmpxchg(static_cast<int>(old), static_cast<int>(new_), reinterpret_cast<int*>(p));
|
||||||
return (!r ? true : false);
|
return (!r ? true : false);
|
||||||
@ -151,7 +147,7 @@ dynamicCall(void* function, uintptr_t* arguments, uint8_t* argumentTypes,
|
|||||||
const unsigned VfpCount = 16;
|
const unsigned VfpCount = 16;
|
||||||
uintptr_t vfpTable[VfpCount];
|
uintptr_t vfpTable[VfpCount];
|
||||||
unsigned vfpIndex = 0;
|
unsigned vfpIndex = 0;
|
||||||
unsigned vfpBackfillIndex UNUSED = 0;
|
unsigned vfpBackfillIndex = 0;
|
||||||
|
|
||||||
uintptr_t stack[(argumentCount * 8) / BytesPerWord]; // is > argumentSize to account for padding
|
uintptr_t stack[(argumentCount * 8) / BytesPerWord]; // is > argumentSize to account for padding
|
||||||
unsigned stackIndex = 0;
|
unsigned stackIndex = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user