From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17361 invoked from network); 27 Jul 1998 21:22:03 -0000 Received: from fourier.numerik.math.uni-siegen.de (141.99.2.230) by mail2.redhat.com with SMTP; 27 Jul 1998 21:22:03 -0000 Received: (from engel@localhost) by fourier.numerik.math.uni-siegen.de (Mailhost) id XAA23645 for axp-list@redhat.com; Mon, 27 Jul 1998 23:21:56 +0200 (MET DST) From: Michael Engel Message-Id: <199807272121.XAA23645@fourier.numerik.math.uni-siegen.de> Subject: aboot expert help wanted ... To: axp-list@redhat.com Date: Mon, 27 Jul 1998 23:21:55 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Hi, [sorry if you already saw a similar posting on the alpha-kernel-list with a title of "TurboChannel Alpha". As I got no messages on that list over the last few days, I decided to try it here with a different subject.] I'd like to start a port of Linux to the TurboChannel DEC3000 Alpha systems. This will be based on (of course) the existing Alpha sources and code and experience from the DECstation port (if you're interested in that, please take a look at http://decstation.unix-ag.org) - the DECstation systems 5000/2x (codenamed "Maxine") are very similar to the TurboChannel Alpha systems, they use the same ASIC as well as NCR53C94 SCSI controllers, Z8530 SCCs, Lance ethernet etc .... I bought a used DEC 3000/300X some days ago (48 MB RAM, RZ26 hard disk, PMAGD-AA 3D accelerated graphics adapter) and started experimenting. 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). When booting aboot from a SCSI floppy drive, I get the following output: aboot: Linux/Alpha SRM bootloader version 0.5 ?02 KSP INVAL PC= 00000000.00000000 PSL= 00000000.00001F00 >>> 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 which immediately caused the machine to crash :(. I'm almost sure this is _not_ the correct way to initialise the stack, but I'm not sure how to do it right, maybe it's only an alignment issue or perhaps s.th. completely different ... Opinions from Alpha assembler experts, please ? ;) 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 ? Any help is greatly appreciated, best regards, Michael Engel (engel@numerik.math.uni-siegen.de)