2002-07-25 18:49:29 +04:00
|
|
|
/*
|
2002-07-09 16:24:59 +04:00
|
|
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
** Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_MEMHEAP_H
|
|
|
|
#define _KERNEL_MEMHEAP_H
|
|
|
|
|
|
|
|
#include <kernel.h>
|
2003-05-03 20:03:26 +04:00
|
|
|
|
|
|
|
struct kernel_args;
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-25 18:49:29 +04:00
|
|
|
#define HEAP_SIZE 0x00400000
|
2002-08-05 21:22:19 +04:00
|
|
|
// 4 MB heap for the kernel
|
|
|
|
|
2002-07-25 18:49:29 +04:00
|
|
|
|
|
|
|
int heap_init(addr new_heap_base);
|
2003-05-03 20:03:26 +04:00
|
|
|
int heap_init_postsem(struct kernel_args *ka);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-10-30 02:03:47 +03:00
|
|
|
#endif /* _KERNEL_MEMHEAP_H */
|