fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / sys / arc / mem-layout.c
blobe9c21522077365ca125aeedbf8d3313da2f1f26a
1 /* Ideally this kind of stuff is specified in a linker script. It's not clear
2 what the default linker script should do, so for now we have this. */
4 /* Keep this file separate from sbrk.c so the programmer can supply his/her
5 own _sbrk_r. This file could go in crt0.S, but I want to keep this in C.
6 This is all just an experiment anyway. */
8 #ifndef STACK_SIZE
9 /* Cache lines recycle at 4096 I think, and 4096 is listed as the page size,
10 so we make the stack size a multiple of it. Not that it's relevant or
11 anything, but why not base it on *something*? */
12 #define STACK_SIZE (4096 * 4)
13 #endif
15 int stack_size asm ("stack_size") = STACK_SIZE;
17 #ifndef SBRK_SIZE
18 #define SBRK_SIZE (4096 * 32)
19 #endif
21 int sbrk_size asm ("sbrk_size") = SBRK_SIZE;