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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [libgloss/] [xc16x/] [mem-layout.c] - Blame information for rev 802

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/*
2
 * Copyright (C) 2006 KPIT Cummins
3
 * Copyright (C) 2009 Conny Marco Menebröcker
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms is permitted
7
 * provided that the above copyright notice and following paragraph are
8
 * duplicated in all such forms.
9
 *
10
 * This file is distributed WITHOUT ANY WARRANTY; without even the implied
11
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
 */
13
/* Ideally this kind of stuff is specified in a linker script.  It's not clear
14
   what the default linker script should do, so for now we have this.  */
15
 
16
#ifndef STACK_SIZE
17
/* Cache lines recycle at 4096 I think, and 4096 is listed as the page size,
18
   so we make the stack size a multiple of it.  Not that it's relevant or
19
   anything, but why not base it on *something*?  */
20
#define STACK_SIZE (4096 * 4)
21
#endif
22
 
23
int stack_size asm ("stack_size") = STACK_SIZE;
24
 
25
#ifndef SBRK_SIZE
26
#define SBRK_SIZE (4096 * 32)
27
#endif
28
 
29
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.