Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/boot
In directory usw-pr-cvs1:/tmp/cvs-serv1072
Modified Files:
head.S
Log Message:
Put the kernel command line in first part of head.S
Add a small tool called from makefile to set the command line
Index: head.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/boot/head.S,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- head.S 2001/09/14 20:30:21 1.13
+++ head.S 2001/09/16 15:19:27 1.14
@@ -19,19 +19,22 @@
_stext:
.globl start
start:
- nop # relocation code, and stack setup required
-# movzbl $0x41,r2 # want to see something early while i debug scsi boot.
-# jsb 0x20040058
- nop
- nop
- nop
+ jmp codestart # Word displacement.
+.globl bootparam
+bootparam:
+ .fill 256,1,0 # The boot parameter block. Presently just the
+ # command line.
+codestart:
# disable memory mapping
mtpr $0, $PR_MAPEN
mtpr $31, $PR_IPL
-# save r11, ap and scbb
+# save r11, ap and scbb and location of command line
movl ap, boot_ap
movl r11, boot_r11
mfpr $PR_SCBB, boot_scb
+ movab bootparam, r5
+ addl2 $PAGE_OFFSET,r5 # we will only access this when mapen=1
+ movl r5,kernel_cmd_line
# put the sp somewhere safe, over our bootblock in fact
moval start, r5
subl2 $0x200, r5
@@ -61,6 +64,10 @@
jsb crlf
movab msg_cpu_type, r10
jsb printstr
+ jsb crlf
+ moval kernel_cmd_line, r10
+ movl (r10),r10
+ jsb printint
movl mv, r10
calls $0, *MV_CPU_TYPE_STR(r10)
@@ -402,4 +409,10 @@
.section .data.init
.globl fake_pcb
fake_pcb: .fill 24,4,0x00000000
+
+# and a pointer to our initial command line
+.globl kernel_cmd_line
+kernel_cmd_line:
+ .int 0x00000000
+
|