From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30276 invoked from network); 28 Jul 1998 06:24:43 -0000 Received: from dot.cygnus.com (205.180.230.224) by mail2.redhat.com with SMTP; 28 Jul 1998 06:24:43 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.8.5/8.8.5) id XAA22121; Mon, 27 Jul 1998 23:25:04 -0700 Message-ID: <19980727232504.I19963@dot.cygnus.com> Date: Mon, 27 Jul 1998 23:25:04 -0700 From: Richard Henderson To: Michael Engel , axp-list@redhat.com Subject: Re: aboot expert help wanted ... Reply-To: Richard Henderson References: <199807272121.XAA23645@fourier.numerik.math.uni-siegen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199807272121.XAA23645@fourier.numerik.math.uni-siegen.de>; from Michael Engel on Mon, Jul 27, 1998 at 11:21:55PM +0200 On Mon, Jul 27, 1998 at 11:21:55PM +0200, Michael Engel wrote: > The first thing I tried was compiling aboot. The most recent version > I found was 0.5 - could someone please confirm that this is the latest > version? After some tweaking aboot compiled fine on my AXPpci33 (the > definition of memset in include/asm-alpha/string.h used __constant_c_memset > which wasn't defined anywhere. Btw., I'm using kernel 2.0.34 at the moment). __constant_c_memset is defined in arch/alpha/lib/memset.S. > It seems that $30 (ksp), which is used to save registers in the dispatch > subroutine, is neither initialized by the firmware nor the aboot code and > that causes the crash. As I'm new to Alpha assembler, I'm not quite sure how > to initialize the stack pointer correctly. I tried > > stack: .quad 0,0,0,0,0,0,0,0,0,0,0 ..... > /* define a couple of empty quads, actually about 128 quads */ > > and then > lda $30, stack Well, if you'd loaded up the top of the stack rather than the bottom you might had faired better. Depending on whether the GP register is loaded at that point. Another point is that the stack pointer should be 16-byte aligned at all times, so you'd want an `.align 4' in front of that stack symbol. A third is that you can use `.space bytes' instead of oodles of 0's. ;-) > Btw., what literature would you suggest for learning Alpha assembler ? I have > digital's Alpha Architecture Manual and OSF/1 Assembly Programming Guide here, > is there something else ? *shrug* I have in the past learned new processors looking at compiler output for small functions. r~