includes in sys/amd64/amd64/mem.c

Conrad J. Sabatier conrads at
Sun Aug 1 18:24:11 PDT 2004

On 02-Aug-2004 Conrad J. Sabatier wrote:


> Adding '#include "/usr/src/sys/amd64/include/vmparam.h"' to mem.c (I
> know this is a hack) produces this:
> linking kernel.debug
> amd64_mem.o(.text+0xa7a): In function `amd64_mrinit':
> /usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to
> mem.o(.text+0x30c): In function `memioctl':
> /usr/src/sys/amd64/amd64/mem.c:185: undefined reference to
> mem.o(.text+0x332):/usr/src/sys/amd64/amd64/mem.c:192: undefined
> reference to `M_MEMDESC'
> mem.o(.text+0x35a):/usr/src/sys/amd64/amd64/mem.c:200: undefined
> reference to `M_MEMDESC'
> mem.o(.text+0x38a):/usr/src/sys/amd64/amd64/mem.c:207: undefined
> reference to `M_MEMDESC'
> *** Error code 1
> Stop in /usr/obj/usr/src/sys/CUSTOM.

OK, I also see that in sys/i386/i386/mem.c we have:

MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");

But sys/amd64/amd64/mem.c has no such macro.

Conrad J. Sabatier <conrads at> -- "In Unix veritas"

More information about the freebsd-current mailing list