rt: Move RED_ZONE_SIZE to rust_task.cpp
This commit is contained in:
@@ -94,15 +94,6 @@ static size_t const BUF_BYTES = 2048;
|
|||||||
// The error status to use when the process fails
|
// The error status to use when the process fails
|
||||||
#define PROC_FAIL_CODE 101;
|
#define PROC_FAIL_CODE 101;
|
||||||
|
|
||||||
// FIXME: We want this to be 128 but need to slim the red zone calls down
|
|
||||||
#ifdef __i386__
|
|
||||||
#define RED_ZONE_SIZE 2048
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __x86_64__
|
|
||||||
#define RED_ZONE_SIZE 2048
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Every reference counted object should use this macro and initialize
|
// Every reference counted object should use this macro and initialize
|
||||||
// ref_count.
|
// ref_count.
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,16 @@
|
|||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
|
// The amount of extra space at the end of each stack segment, available
|
||||||
|
// to the rt, compiler and dynamic linker for running small functions
|
||||||
|
// FIXME: We want this to be 128 but need to slim the red zone calls down
|
||||||
|
#ifdef __i386__
|
||||||
|
#define RED_ZONE_SIZE 2048
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
|
#define RED_ZONE_SIZE 2048
|
||||||
|
#endif
|
||||||
|
|
||||||
// Stack size
|
// Stack size
|
||||||
size_t g_custom_min_stack_size = 0;
|
size_t g_custom_min_stack_size = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user