From owner-freebsd-alpha Mon May 28 10:11:56 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id D07F437B422 for ; Mon, 28 May 2001 10:11:52 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from beppo (mjacob@beppo [192.67.166.79]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f4SHBlg16179; Mon, 28 May 2001 10:11:47 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Mon, 28 May 2001 10:11:46 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: "Daniel C. Sobral" Cc: alpha@FreeBSD.ORG Subject: Re: Latest on ' HEADS UP: loader broken' In-Reply-To: <3B11B706.E8032F96@newsguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Matthew Jacob wrote: > > > > Your surmise about loader.4th is correct, I believe. > > > > The alpha's boot1/loader from after your commits seems to boot my PC164 just > > fine with the older loader.4th, but chokes on the new one. > > > > The relevant diffs in loader.4th are: > > -------- > > 49a50,52 > > > > > > 256 dictthreshold ! \ 256 cells minimum free space > > > 2048 dictincrease ! \ 2048 additional cells each time > > -------- > > Oh... This is *NOT* what I expected! > Well, this is now more interesting. I gave the loader half again as much heap space *and* doubled the stack But still, the two dict lines below cause the system to die in the loader with a bad kernel stack. I really have no idea what the run time allocation issues might be- but clearly this has got to be something wierd. If I take your calculations below, the intial dictionary will be 80000 bytes. Each additional 2048 cell increase will add 16KB. This shouldn't be a problem, but, well, there it is. There are some warnings compiling on alpha. Maybe you could look at them and see where this might contribute to the problem? -matt ===> ficl cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/dict.c -o dict.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/ficl.c -o ficl.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/math64.c -o math64.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/search.c -o search.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/stack.c -o stack.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/tools.c -o tools.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/prefix.c -o prefix.o /usr/src/sys/boot/ficl/prefix.c: In function `ficlParsePrefix': /usr/src/sys/boot/ficl/prefix.c:102: warning: overflow in implicit constant conversion cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/loader.c -o loader.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/vm.c -o vm.o cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/words.c -o words.o /usr/src/sys/boot/ficl/words.c: In function `ficlParseWord': /usr/src/sys/boot/ficl/words.c:1327: warning: overflow in implicit constant conversion /usr/src/sys/boot/ficl/words.c:1343: warning: overflow in implicit constant conversion cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c /usr/src/sys/boot/ficl/alpha/sysdep.c -o sysdep.o (cd /usr/src/sys/boot/ficl/softwords; cat softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr ifbrack.fr | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > softcore.c cc -O -pipe -mcpu=ev4 -mno-fp-regs -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/alpha -I/usr/src/sys/boot/ficl/../common -c softcore.c -o softcore.o building static ficl library ranlib libficl.a .... cc -O -pipe -mcpu=ev4 -DLOADER_CDROM_SUPPORT -I/usr/src/sys/boot/alpha/cdboot/../../ficl -I/usr/src/sys/boot/alpha/cdboot/../../ficl/alpha -DBOOT_FORTH -mno-fp-regs -I/usr/src/sys/boot/alpha/cdboot/../../common -I/usr/src/sys/boot/alpha/cdboot -I/usr/src/sys/boot/alpha/cdboot/../../.. -I. -DPRIMARY_LOAD_ADDRESS=0x20000000 -DSECONDARY_LOAD_ADDRESS=0x2000c000 -Wall -I/usr/src/sys/boot/alpha/cdboot/../../../../lib/libstand -I/usr/src/sys/boot/alpha/cdboot/.. -c /usr/src/sys/boot/alpha/cdboot/../../common/interp_forth.c /usr/src/sys/boot/alpha/cdboot/../../common/interp_forth.c: In function `bf_init': /usr/src/sys/boot/alpha/cdboot/../../common/interp_forth.c:246: warning: passing arg 1 of `ficlBuild' discards qualifiers from pointer target type Generating linker sets ... -matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message