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

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

1.1       init        1: /*
1.3     ! init        2:  * $Id: mem.h,v 1.2 2007/10/16 11:48:00 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 */
1.3     ! init       11:
        !            12: #ifdef ARCH_SAM7S64
        !            13: #define KMEM_HEAPBEGIN 0x00200800
        !            14: #else
1.1       init       15: #define KMEM_HEAPBEGIN         0x00200000 /* 2nd MB */
1.3     ! init       16: #endif
        !            17:
1.1       init       18: #define KMEM_STACKBEGIN (CONFIG_PHYSMEM - 1) /* end of physical memory */
                     19:
                     20: #define KMEM_MINESTSTACKSIZE 1024 /* 1KB, minimum estimated stack size (when brk shifts to the top of stack) */
1.2       init       21:
                     22: #define KMEM_FILLBYTE 0x00 /* byte with which free pages will be filled */
1.1       init       23:
                     24: void   kmem_init(void);
                     25: void   *kmalloc(uint32_t nbytes);
                     26: void   kfree(void *p, uint32_t nbytes);
                     27:
                     28: #endif /* not _SYS_MEM_H */
                     29:

CVSweb