pal_linux_defs.h 838 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef PAL_LINUX_DEFS_H
  2. #define PAL_LINUX_DEFS_H
  3. #define THREAD_STACK_SIZE (PRESET_PAGESIZE * 512) /* 2MB untrusted stack */
  4. #define ALT_STACK_SIZE PRESET_PAGESIZE
  5. #define ENCLAVE_HIGH_ADDRESS 0x800000000
  6. #define SSAFRAMENUM 2
  7. #define MEMORY_GAP PRESET_PAGESIZE
  8. #define ENCLAVE_STACK_SIZE (PRESET_PAGESIZE * 64)
  9. #define ENCLAVE_SIG_STACK_SIZE (PRESET_PAGESIZE * 16)
  10. #define DEFAULT_HEAP_MIN 0x10000
  11. #define TRACE_ECALL 1
  12. #define TRACE_OCALL 1
  13. #define DEBUG_ECALL 0
  14. #define DEBUG_OCALL 0
  15. #define TRUSTED_STUB_SIZE (PRESET_PAGESIZE * 4UL)
  16. #define CACHE_FILE_STUBS 1
  17. //#define USE_AES_NI 1
  18. #define PRINT_ENCLAVE_STAT 0
  19. #define MAX_ARGS_SIZE 10000000
  20. #define MAX_ENV_SIZE 10000000
  21. #define RED_ZONE_SIZE 128
  22. #endif /* PAL_LINUX_DEFS_H */