summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-03 14:21:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-13 13:03:49 +0100
commit53145c7232007e4c83819131a820e63e00dba7e6 (patch)
tree8b6266a11907c43f937335abec4acacc046903f7 /freebsd/sys/sys
parentNVME(4): Add build module (diff)
downloadrtems-libbsd-53145c7232007e4c83819131a820e63e00dba7e6.tar.bz2
NVME(4): Port to RTEMS
Update #3821.
Diffstat (limited to 'freebsd/sys/sys')
-rw-r--r--freebsd/sys/sys/malloc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/sys/sys/malloc.h b/freebsd/sys/sys/malloc.h
index 83510329..56b17f36 100644
--- a/freebsd/sys/sys/malloc.h
+++ b/freebsd/sys/sys/malloc.h
@@ -185,7 +185,11 @@ void *contigmalloc_domainset(unsigned long size, struct malloc_type *type,
unsigned long alignment, vm_paddr_t boundary)
__malloc_like __result_use_check __alloc_size(1) __alloc_align(7);
void free(void *addr, struct malloc_type *type);
+#ifndef __rtems__
void free_domain(void *addr, struct malloc_type *type);
+#else /* __rtems__ */
+#define free_domain(addr, type) free(addr, type)
+#endif /* __rtems__ */
#ifndef __rtems__
void *malloc(size_t size, struct malloc_type *type, int flags) __malloc_like
__result_use_check __alloc_size(1);
@@ -250,9 +254,13 @@ void *_bsd_malloc(size_t size, struct malloc_type *type, int flags)
_malloc_item; \
})
+#ifndef __rtems__
void *malloc_domainset(size_t size, struct malloc_type *type,
struct domainset *ds, int flags) __malloc_like __result_use_check
__alloc_size(1);
+#else /* __rtems__ */
+#define malloc_domainset(size, type, ds, flags) malloc(size, type, flags)
+#endif /* __rtems__ */
void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
int flags) __malloc_like __result_use_check
__alloc_size2(1, 2);