mirror of
https://github.com/corda/corda.git
synced 2025-06-18 07:08:15 +00:00
ENT-1187 - Update Intel SGX SDK (#165)
* Remove diverged copy of 'linux-sgx' * Squashed 'sgx-jvm/linux-sgx/' content from commit 3699ffd5e git-subtree-dir: sgx-jvm/linux-sgx git-subtree-split: 3699ffd5ebd8e79d599301fa2e5814e2386cad2d * ENT-1194 - Executable heap * ENT-1194 - Placeholder for passing of enclave context to create_thread
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
*/
|
||||
#if __has_feature(cxx_atomic)
|
||||
#define ATOMIC_SWAP(addr, val)\
|
||||
__atomic_exchange(addr, val, __ATOMIC_ACQ_REL)
|
||||
__atomic_exchange_n(addr, val, __ATOMIC_ACQ_REL)
|
||||
#elif __has_builtin(__sync_swap)
|
||||
#define ATOMIC_SWAP(addr, val)\
|
||||
__sync_swap(addr, val)
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
#if __has_feature(cxx_atomic)
|
||||
#define ATOMIC_LOAD(addr)\
|
||||
__atomic_load(addr, __ATOMIC_ACQUIRE)
|
||||
__atomic_load_n(addr, __ATOMIC_ACQUIRE)
|
||||
#else
|
||||
#define ATOMIC_LOAD(addr)\
|
||||
(__sync_synchronize(), *addr)
|
||||
|
@ -1,8 +0,0 @@
|
||||
void __cxa_finalize(void *d ) { (void)d; };
|
||||
|
||||
extern void* __dso_handle;
|
||||
|
||||
__attribute((destructor))
|
||||
static void cleanup(void) {
|
||||
__cxa_finalize(&__dso_handle);
|
||||
}
|
Reference in New Issue
Block a user