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>
|
|
|
|
#include <stage2.h>
|
|
|
|
|
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);
|
2002-07-09 16:24:59 +04:00
|
|
|
int heap_init_postsem(kernel_args *ka);
|
|
|
|
void *kmalloc(unsigned int size);
|
|
|
|
void kfree(void *address);
|
|
|
|
char *kstrdup(const char*text);
|
|
|
|
|
|
|
|
#endif /* _KERNEL_MEMHEAP_H */
|