Files
haiku-beta6/headers/private/kernel/memheap.h
T

36 lines
717 B
C
Raw Normal View History

/*
* Copyright 2002-2006, Axel Dörfler, [email protected].
2005-05-26 09:11:30 +00:00
* Distributed under the terms of the MIT License.
*
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
2002-07-09 12:24:59 +00:00
#ifndef _KERNEL_MEMHEAP_H
#define _KERNEL_MEMHEAP_H
2005-05-26 09:11:30 +00:00
#include <OS.h>
struct kernel_args;
2002-07-09 12:24:59 +00:00
2005-05-26 09:11:30 +00:00
#define HEAP_SIZE 0x02000000
// 32 MB heap for the kernel (!)
2002-08-05 17:22:19 +00:00
#ifdef __cplusplus
extern "C" {
#endif
void *memalign(size_t alignment, size_t size);
status_t heap_init(addr_t heapBase, size_t heapSize);
status_t heap_init_post_sem(struct kernel_args *args);
status_t heap_init_post_thread(struct kernel_args *args);
#ifdef __cplusplus
}
#endif
2002-07-09 12:24:59 +00:00
#endif /* _KERNEL_MEMHEAP_H */