Last change
on this file since 684 was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
998 bytes
|
Rev | Line | |
---|
[444] | 1 | /* |
---|
| 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; |
---|
Note: See
TracBrowser
for help on using the repository browser.