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:
Tommy Lillehagen
2017-12-14 12:33:15 +00:00
committed by GitHub
parent 205663d37f
commit f21f8e7142
829 changed files with 32308 additions and 123810 deletions

View File

@ -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)

View File

@ -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);
}