=================================================================== RCS file: /cvs/funnyos/sys/mem.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- funnyos/sys/mem.h 2007/10/16 12:48:00 1.2 +++ funnyos/sys/mem.h 2007/11/09 15:04:34 1.3 @@ -1,5 +1,5 @@ /* - * $Id: mem.h,v 1.2 2007/10/16 11:48:00 init Exp $ + * $Id: mem.h,v 1.3 2007/11/09 15:04:34 init Exp $ */ #ifndef _SYS_MEM_H #define _SYS_MEM_H @@ -8,7 +8,13 @@ /* XXX replace with dynamic macross */ #define KMEM_DATABEGIN 0x00100000 /* 1st MB */ + +#ifdef ARCH_SAM7S64 +#define KMEM_HEAPBEGIN 0x00200800 +#else #define KMEM_HEAPBEGIN 0x00200000 /* 2nd MB */ +#endif + #define KMEM_STACKBEGIN (CONFIG_PHYSMEM - 1) /* end of physical memory */ #define KMEM_MINESTSTACKSIZE 1024 /* 1KB, minimum estimated stack size (when brk shifts to the top of stack) */