get this linking and running (sorta) again:
soundwave$ ./netbsd NetBSD/usermode startup Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 5.99.55 (GENERIC) #10: Thu Aug 11 14:24:03 EDT 2011 jmcneill@soundwave:/home/jmcneill/branches/HEAD/src/sys/arch/usermode/compile/GENERIC total memory = 128 MB avail memory = 124 MB mainbus0 (root) cpu0 at mainbus0 clock0 at mainbus0 ttycons0 at mainbus0: console panic: setcontext failed: 14 rebooting... Abort (core dumped)
This commit is contained in:
parent
3987d9df98
commit
cd4fe87b42
@ -1,12 +1,10 @@
|
||||
# $NetBSD: GENERIC,v 1.6 2011/08/10 01:32:43 jmcneill Exp $
|
||||
# $NetBSD: GENERIC,v 1.7 2011/08/11 22:30:41 jmcneill Exp $
|
||||
|
||||
include "arch/usermode/conf/std.usermode"
|
||||
|
||||
options INCLUDE_CONFIG_FILE
|
||||
#ident "GENERIC-$Revision: 1.6 $"
|
||||
#ident "GENERIC-$Revision: 1.7 $"
|
||||
maxusers 32
|
||||
makeoptions DEBUG="-g3"
|
||||
makeoptions COPTS="-O2 -fno-omit-frame-pointer"
|
||||
|
||||
#options MEMSIZE=65536 # amount of memory to allocate (in KB)
|
||||
options MEMSIZE=131072
|
||||
@ -15,6 +13,10 @@ options RTC_OFFSET=0
|
||||
options KTRACE
|
||||
options USERCONF
|
||||
|
||||
options SYSVMSG
|
||||
options SYSVSEM
|
||||
options SYSVSHM
|
||||
|
||||
#options DEBUG
|
||||
#options DIAGNOSTIC
|
||||
#options LOCKDEBUG
|
||||
@ -25,6 +27,7 @@ options NKMEMPAGES=256
|
||||
#options DDB_HISTORY_SIZE=512
|
||||
|
||||
options COMPAT_BSDPTY
|
||||
options COMPAT_50
|
||||
|
||||
file-system FFS
|
||||
file-system FDESC
|
||||
|
@ -1,12 +1,10 @@
|
||||
# $NetBSD: Makefile.usermode,v 1.5 2011/08/10 01:32:43 jmcneill Exp $
|
||||
# $NetBSD: Makefile.usermode,v 1.6 2011/08/11 22:30:41 jmcneill Exp $
|
||||
|
||||
MACHINE_ARCH= usermode
|
||||
USETOOLS?= no
|
||||
NEED_OWN_INSTALL_TARGET?= no
|
||||
.include <bsd.own.mk>
|
||||
|
||||
SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
|
||||
|
||||
##
|
||||
## (1) port identification
|
||||
##
|
||||
@ -16,15 +14,15 @@ GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf
|
||||
##
|
||||
## (2) compile settings
|
||||
##
|
||||
DEFCOPTS= -O2
|
||||
DEFCOPTS= -O2 -fno-omit-frame-pointer
|
||||
CPPFLAGS+= -Dusermode
|
||||
CPPFLAGS.init_main.c+= -Dmain=kernmain
|
||||
AFLAGS+= -x assembler-with-cpp
|
||||
|
||||
##
|
||||
## (3) libkern and compat
|
||||
##
|
||||
KERN_AS= obj
|
||||
COMPAT_AS= obj
|
||||
|
||||
##
|
||||
## (4) local objects, compile rules, and dependencies
|
||||
@ -36,6 +34,17 @@ MD_SFILES=
|
||||
##
|
||||
## (5) link settings
|
||||
##
|
||||
SYSTEM_LD= @${_MKSHMSG} " link ${.CUTDIR:T}/${.TARGET}"; \
|
||||
${_MKSHECHO}\
|
||||
${CC} ${COPTS} -Wl,-Map,$@.map -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \
|
||||
${CC} ${COPTS} -Wl,-Map,$@.map -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
|
||||
|
||||
newvers: vers.o
|
||||
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} $S/conf/newvers.sh $S/conf/osrelease.sh
|
||||
${_MKMSG_CREATE} vers.c
|
||||
${HOST_SH} $S/conf/newvers.sh -n ${_NVFLAGS}
|
||||
${_MKTARGET_COMPILE}
|
||||
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
|
||||
|
||||
##
|
||||
## (6) port specific target dependencies
|
||||
|
Loading…
Reference in New Issue
Block a user