haiku/headers/private/kernel/memheap.h
Axel Dörfler 4976718d0e 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
2004-10-18 15:23:34 +00:00

30 lines
516 B
C
Executable File

/*
** 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 <OS.h>
struct kernel_args;
#define HEAP_SIZE 0x00400000
// 4 MB heap for the kernel
#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 */