diff options
| author | User Jyyou <jyyou@plaslab.cs.nctu.edu.tw> | 2011-12-30 16:18:55 +0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-01 20:18:55 -0800 |
| commit | a59c4b1b47b84879edfc43e7278553105930f0e2 (patch) | |
| tree | 43bb77fc44805eb19df2a3d5319d7fe1f2f3bd9c /src/rt/rust_task.cpp | |
| parent | f0e98691dbf88d0fac7ae04d131e9059d0335527 (diff) | |
| download | rust-a59c4b1b47b84879edfc43e7278553105930f0e2.tar.gz rust-a59c4b1b47b84879edfc43e7278553105930f0e2.zip | |
freebsd support
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 2e6c41a8e79..92f24c8c7fa 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -23,6 +23,8 @@ #define RZ_MAC_32 (1024*20) #define RZ_MAC_64 (1024*20) #define RZ_WIN_32 (1024*20) +#define RZ_BSD_32 (1024*20) +#define RZ_BSD_64 (1024*20) #ifdef __linux__ #ifdef __i386__ @@ -48,6 +50,14 @@ #define RED_ZONE_SIZE RZ_WIN_64 #endif #endif +#ifdef __FreeBSD__ +#ifdef __i386__ +#define RED_ZONE_SIZE RZ_BSD_32 +#endif +#ifdef __x86_64__ +#define RED_ZONE_SIZE RZ_BSD_64 +#endif +#endif // A value that goes at the end of the stack and must not be touched const uint8_t stack_canary[] = {0xAB, 0xCD, 0xAB, 0xCD, |
