Added contigfree() as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22804 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,7 +26,7 @@ void _kernel_contigfree(void *addr, unsigned long size);
|
|||||||
#define kernel_malloc(size, base, flags) \
|
#define kernel_malloc(size, base, flags) \
|
||||||
_kernel_malloc(size, flags)
|
_kernel_malloc(size, flags)
|
||||||
|
|
||||||
#define kernel_free( ptr, base) \
|
#define kernel_free(ptr, base) \
|
||||||
_kernel_free(ptr)
|
_kernel_free(ptr)
|
||||||
|
|
||||||
#define kernel_contigmalloc(size, type, flags, low, high, alignment, boundary) \
|
#define kernel_contigmalloc(size, type, flags, low, high, alignment, boundary) \
|
||||||
@@ -42,6 +42,8 @@ void _kernel_contigfree(void *addr, unsigned long size);
|
|||||||
# define contigmalloc(size, type, flags, low, high, alignment, boundary) \
|
# define contigmalloc(size, type, flags, low, high, alignment, boundary) \
|
||||||
_kernel_contigmalloc(__FILE__, __LINE__, size, flags, low, high, \
|
_kernel_contigmalloc(__FILE__, __LINE__, size, flags, low, high, \
|
||||||
alignment, boundary)
|
alignment, boundary)
|
||||||
|
# define contigfree(addr, size, base) \
|
||||||
|
_kernel_contigfree(addr, size)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _FBSD_COMPAT_SYS_MALLOC_H_ */
|
#endif /* _FBSD_COMPAT_SYS_MALLOC_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user