Subject: Re: Adding bootverbose
To: Ben Harris <bjh21@netbsd.org>
From: Jaromír Doleček <dolecek@ibis.cz>
List: tech-kern
Date: 07/06/2000 18:01:51
Ben Harris wrote:
> In article <200007061206.e66C6MY03203@saruman.ics.muni.cz> you write:
> >Couple of issues: amigappc,arm26,mac68k don't seem to pass/recognize
> >any boot flags. Is the info passed other way ?
>
> arm26 passes a binary structure from the bootloader to the kernel. Look in
> sys/arch/arm26/include/boot.h.
Ah, I should have grepped for 'howto' even for arm26 :) Would following
be right for arm26 ?
Index: boot/BBBB,fd1
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/arm26/boot/BBBB,fd1,v
retrieving revision 1.1
diff -u -r1.1 BBBB,fd1
--- BBBB,fd1 2000/05/09 21:55:57 1.1
+++ BBBB,fd1 2000/07/06 15:53:46
@@ -68,6 +68,7 @@
WHEN "a" : howto% = howto% OR &01 : REM RB_ASKNAME
WHEN "s" : howto% = howto% OR &02 : REM RB_SINGLE
WHEN "d" : howto% = howto% OR &40 : REM RB_KDB
+ WHEN "v" : howto% = howto% OR &1000 : REM RB_VERBOSE
WHEN " ", "" : done% = TRUE
OTHERWISE : ERROR EXT 0, "Bad option: " + LEFT$(A$, 1)
ENDCASE
> Well, in sys/arch/vax/vax/subr.s, the VAX seems to get its boothowto from
> R11 on old bootloaders:
>
> movl r11,_boothowto # Howto boot (single etc...)
>
> On later bootloaders, it's passed in the RPB (in rpb_bootr5) (see locore.c):
>
> boothowto = prpb->rpb_bootr5;
Well, I did found this, just couldn't find where either r11 or prpb->rpb_bootr5
is initialized, i.e. if there is way for user to specify boot flags
similar way to i386's : boot FILE -s
Okay, I'll look a bit further :)
Jaromir
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.ics.muni.cz/~dolecek/
@@@@ Wanna a real operating system ? Go and get NetBSD, damn! @@@@