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

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

1.1     ! init        1: /*
        !             2:  * $Id: mem.h,v 1.1.1.1 2007/10/12 08:40:38 init Exp $
        !             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) */
        !            15:
        !            16: void   kmem_init(void);
        !            17: void   *kmalloc(uint32_t nbytes);
        !            18: void   kfree(void *p, uint32_t nbytes);
        !            19:
        !            20: #endif /* not _SYS_MEM_H */
        !            21:

CVSweb