Limit visibility of _RUMPKERNEL to prevent abuse.
This commit is contained in:
parent
65972a0f32
commit
d3280f90bc
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.rump,v 1.56 2010/04/26 23:01:53 pooka Exp $
|
||||
# $NetBSD: Makefile.rump,v 1.57 2010/05/11 21:08:07 pooka Exp $
|
||||
#
|
||||
|
||||
WARNS?= 3 # XXX: src/sys won't compile with -Wsign-compare yet
|
||||
|
@ -10,13 +10,13 @@ NOLINT= # kernel code
|
|||
# use rump ABI instead of the NetBSD kernel ABI.
|
||||
.ifndef RUMPKMOD
|
||||
CPPFLAGS:= -I${RUMPTOP}/include ${CPPFLAGS}
|
||||
CPPFLAGS+= -D_RUMPKERNEL
|
||||
.else
|
||||
CPPFLAGS+= -D_RUMP_NATIVE_ABI
|
||||
.endif
|
||||
|
||||
CFLAGS+= -ffreestanding -fno-strict-aliasing
|
||||
CWARNFLAGS+= -Wno-format-zero-length -Wno-pointer-sign
|
||||
CPPFLAGS+= -D_RUMPKERNEL
|
||||
CPPFLAGS+= -D_KERNEL -DMULTIPROCESSOR -D_MODULE -DMODULAR
|
||||
CPPFLAGS+= -DMAXUSERS=32
|
||||
CPPFLAGS+= -DDIAGNOSTIC
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.rumpkern,v 1.82 2010/04/30 20:54:17 pooka Exp $
|
||||
# $NetBSD: Makefile.rumpkern,v 1.83 2010/05/11 21:08:07 pooka Exp $
|
||||
#
|
||||
|
||||
.include "${RUMPTOP}/Makefile.rump"
|
||||
|
@ -68,6 +68,13 @@ SRCS+= vnode_if.c
|
|||
# sys/dev
|
||||
SRCS+= clock_subr.c
|
||||
|
||||
# Non-kernel ABI gets this for the whole rump build, as opposed to
|
||||
# kernel ABI where we need to specifically set it here to get
|
||||
# some things like the atomic ops implementation right.
|
||||
.ifdef RUMPKMOD
|
||||
CPPFLAGS+= -D_RUMPKERNEL
|
||||
.endif
|
||||
|
||||
# Flip the comment to the other line if you want to use malloc(3)
|
||||
# directly instead of the kernel allocators backed by malloc(3)/mmap(2).
|
||||
# Libc malloc is a few percent faster, but doesn't emulate all kernel
|
||||
|
|
Loading…
Reference in New Issue