Return to mem.h CVS log | Up to [local] / funnyos / sys |
File: [local] / funnyos / sys / mem.h (download)
Revision 1.1.1.1 (vendor branch), Tue Oct 16 08:41:05 2007 UTC (16 years, 11 months ago) by init
Initial import of funnyos; still much more work to do |
/* * $Id: mem.h,v 1.1.1.1 2007/10/16 08:41:05 init Exp $ */ #ifndef _SYS_MEM_H #define _SYS_MEM_H #define KMEM_PAGESIZE 4 /* bytes */ /* XXX replace with dynamic macross */ #define KMEM_DATABEGIN 0x00100000 /* 1st MB */ #define KMEM_HEAPBEGIN 0x00200000 /* 2nd MB */ #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) */ void kmem_init(void); void *kmalloc(uint32_t nbytes); void kfree(void *p, uint32_t nbytes); #endif /* not _SYS_MEM_H */