OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [arc/] [mem-layout.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* 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.  */
3
 
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.  */
7
 
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
14
 
15
int stack_size asm ("stack_size") = STACK_SIZE;
16
 
17
#ifndef SBRK_SIZE
18
#define SBRK_SIZE (4096 * 32)
19
#endif
20
 
21
int sbrk_size asm ("sbrk_size") = SBRK_SIZE;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.