mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 16:31:06 +00:00
20df224b19
With the increase of MAXPHYS, the rump kernel requests a contiguous allocation of 2101248 bytes, which exceeds the allocator's block size of 2 MiB. Error: backend allocator: Unable to allocate memory (size: 2101248 align: 12) The patch avoids this corner case by increasing the allocator's block size to 4 MiB. Fixes #4613
20 lines
799 B
Makefile
20 lines
799 B
Makefile
RUMP_PORT_DIR := $(call select_from_ports,dde_rump)/src/lib/dde_rump
|
|
RUMP_BASE := $(BUILD_BASE_DIR)/var/libcache/rump
|
|
|
|
CC_C_OPT += -D__NetBSD__ -D'CTASSERT(x)=' -DMAXPHYS=1048576 -D_RUMP_NATIVE_ABI \
|
|
-DMAXUSERS=32 -DCOMPAT_50=1 -DCOMPAT_60=1 -DDIAGNOSTIC -DKTRACE \
|
|
-DRUMP_KERNEL_IS_LIBC -D_RUMPKERNEL -D_KERNEL -DMULTIPROCESSOR \
|
|
-D_MODULE -DMODULAR -DRUMP_USE_CTOR
|
|
|
|
#
|
|
# silence contrib code
|
|
#
|
|
CC_C_OPT += -fno-builtin-printf -fno-builtin-vprintf -fno-builtin-log \
|
|
-fno-builtin-putchar
|
|
CC_C_OPT += -Wno-pointer-sign -Wno-unused-but-set-variable \
|
|
-Wno-unused-variable -Wno-format-zero-length \
|
|
-Wno-nonnull-compare -Wno-misleading-indentation \
|
|
-Wno-format -Wno-incompatible-pointer-types
|
|
|
|
# vi:set ft=make :
|