From: Richard Henderson <rth@dot.cygnus.com>
To: Michael Engel <engel@numerik.math.uni-siegen.de>, axp-list@redhat.com
Subject: Re: aboot expert help wanted ...
Date: Mon, 27 Jul 1998 23:25:04 -0700 [thread overview]
Message-ID: <19980727232504.I19963@dot.cygnus.com> (raw)
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~
next prev parent reply other threads:[~1998-07-28 6:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-27 21:21 aboot expert help wanted Michael Engel
1998-07-28 6:25 ` Richard Henderson [this message]
1998-07-28 8:46 ` Wes Bauske
1998-07-28 8:45 ` Martin Ostermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox