We now have a memalign() call in the kernel, too (since there already was
some code that relied on malloc() to return memory with some alignment restrictions fulfilled). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9395 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e1e5a66bc2
commit
4976718d0e
@ -5,7 +5,7 @@
|
||||
#ifndef _KERNEL_MEMHEAP_H
|
||||
#define _KERNEL_MEMHEAP_H
|
||||
|
||||
#include <kernel.h>
|
||||
#include <OS.h>
|
||||
|
||||
struct kernel_args;
|
||||
|
||||
@ -13,7 +13,17 @@ struct kernel_args;
|
||||
// 4 MB heap for the kernel
|
||||
|
||||
|
||||
int heap_init(addr new_heap_base);
|
||||
int heap_init_postsem(struct kernel_args *ka);
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void *memalign(size_t alignment, size_t size);
|
||||
|
||||
status_t heap_init(addr_t heapBase);
|
||||
status_t heap_init_postsem(struct kernel_args *args);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL_MEMHEAP_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user