pal_linux_defs.h 784 B

12345678910111213141516171819202122232425262728293031
  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 DEFAULT_HEAP_MIN 0x10000
  10. #define TRACE_ECALL 1
  11. #define TRACE_OCALL 1
  12. #define DEBUG_ECALL 0
  13. #define DEBUG_OCALL 0
  14. #define TRUSTED_STUB_SIZE (PRESET_PAGESIZE * 4UL)
  15. #define CACHE_FILE_STUBS 1
  16. //#define USE_AES_NI 1
  17. #define PRINT_ENCLAVE_STAT 0
  18. #define MAX_ARGS_SIZE 10000000
  19. #define MAX_ENV_SIZE 10000000
  20. #define RED_ZONE_SIZE 128
  21. #endif /* PAL_LINUX_DEFS_H */