mem.c: mem_range_softc undefined reference

Conrad J. Sabatier conrads at cox.net
Thu Aug 5 21:07:33 PDT 2004


On 06-Aug-2004 Conrad J. Sabatier wrote:
> Well, until the patch gets officially committed to fix UP builds on
> amd64, you may want to try the following.  I just emulated the recent
> commit to machdep.c for i386.  The kernel now links OK.
> 
> I don't know what's holding up committing such a simple fix.
> 
> dolphin:root:/usr/src/sys/amd64/amd64# cvs diff machdep.c
> Index: machdep.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/amd64/amd64/machdep.c,v
> retrieving revision 1.615
> diff -r1.615 machdep.c
> 67a68
>> #include <sys/memrange.h>
> 166a168,169
>> struct mem_range_softc mem_range_softc;
>>

Oh, and for completeness' sake, you'll want to remove the line
"struct mem_range_softc mem_range_softc;" from mp_machdep.c, also.  :-)

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


More information about the freebsd-amd64 mailing list