From owner-freebsd-current@FreeBSD.ORG Mon Aug 2 01:24:11 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B738C16A4CE; Mon, 2 Aug 2004 01:24:11 +0000 (GMT) Received: from lakermmtao07.cox.net (lakermmtao07.cox.net [68.230.240.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20E2C43D31; Mon, 2 Aug 2004 01:24:11 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.71.51]) by lakermmtao07.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040802012410.NXAP6416.lakermmtao07.cox.net@dolphin.local.net>; Sun, 1 Aug 2004 21:24:10 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.12.11/8.12.11) with ESMTP id i721OAjU071992; Sun, 1 Aug 2004 20:24:10 -0500 (CDT) (envelope-from conrads@dolphin.local.net) Received: (from conrads@localhost) by dolphin.local.net (8.12.11/8.12.11/Submit) id i721O9LB071991; Sun, 1 Aug 2004 20:24:09 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sun, 01 Aug 2004 20:24:09 -0500 (CDT) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: "Conrad J. Sabatier" To: freebsd-current@freebsd.org Subject: Re: includes in sys/amd64/amd64/mem.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: conrads@cox.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 01:24:11 -0000 On 02-Aug-2004 Conrad J. Sabatier wrote: [snip] > 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 > `M_MEMDESC' > mem.o(.text+0x30c): In function `memioctl': > /usr/src/sys/amd64/amd64/mem.c:185: undefined reference to > `M_MEMDESC' > 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 -- "In Unix veritas"