Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 10:11:46 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        alpha@FreeBSD.ORG
Subject:   Re: Latest on ' HEADS UP: loader broken'
Message-ID:  <Pine.BSF.4.21.0105281001340.16108-100000@beppo.feral.com>
In-Reply-To: <3B11B706.E8032F96@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0105281001340.16108-100000>