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:
@@ -5,7 +5,7 @@
|
|||||||
#ifndef _KERNEL_MEMHEAP_H
|
#ifndef _KERNEL_MEMHEAP_H
|
||||||
#define _KERNEL_MEMHEAP_H
|
#define _KERNEL_MEMHEAP_H
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <OS.h>
|
||||||
|
|
||||||
struct kernel_args;
|
struct kernel_args;
|
||||||
|
|
||||||
@@ -13,7 +13,17 @@ struct kernel_args;
|
|||||||
// 4 MB heap for the kernel
|
// 4 MB heap for the kernel
|
||||||
|
|
||||||
|
|
||||||
int heap_init(addr new_heap_base);
|
#ifdef __cplusplus
|
||||||
int heap_init_postsem(struct kernel_args *ka);
|
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 */
|
#endif /* _KERNEL_MEMHEAP_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user