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. */
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)
15 int stack_size
asm ("stack_size") = STACK_SIZE
;
18 #define SBRK_SIZE (4096 * 32)
21 int sbrk_size
asm ("sbrk_size") = SBRK_SIZE
;