[BACK]Return to mem.h CVS log [TXT][DIR] Up to [local] / funnyos / sys

Annotation of funnyos/sys/mem.h, Revision 1.2

1.1       init        1: /*
1.2     ! init        2:  * $Id: mem.h,v 1.1.1.1 2007/10/16 08:41:05 init Exp $
1.1       init        3:  */
                      4: #ifndef _SYS_MEM_H
                      5: #define _SYS_MEM_H
                      6:
                      7: #define KMEM_PAGESIZE  4       /* bytes */
                      8:
                      9: /* XXX replace with dynamic macross */
                     10: #define KMEM_DATABEGIN         0x00100000 /* 1st MB */
                     11: #define KMEM_HEAPBEGIN         0x00200000 /* 2nd MB */
                     12: #define KMEM_STACKBEGIN (CONFIG_PHYSMEM - 1) /* end of physical memory */
                     13:
                     14: #define KMEM_MINESTSTACKSIZE 1024 /* 1KB, minimum estimated stack size (when brk shifts to the top of stack) */
1.2     ! init       15:
        !            16: #define KMEM_FILLBYTE 0x00 /* byte with which free pages will be filled */
1.1       init       17:
                     18: void   kmem_init(void);
                     19: void   *kmalloc(uint32_t nbytes);
                     20: void   kfree(void *p, uint32_t nbytes);
                     21:
                     22: #endif /* not _SYS_MEM_H */
                     23:

CVSweb