/boot,/mdec,[T]MSCP (Part 6 of 22)

Steven M. Schultz sms at wlv.imsd.contel.com
Sat May 18 16:21:08 AEST 1991


Subject: Part 6 of 22 /boot,/mdec,[T]MSCP updates
Index:	/sys/<many>, /usr/src/etc/<several> 2.11BSD

Description:
Repeat-By:
Fix:
	See part 0 (the README) for the Description, the Reason and
	the instructions on how update your system.

This is part 6 of 22

The booting device's CSR and unit number being passed from 'boot'
are saved for later use in a [auto]reboot.

*** /usr/src/sys/pdp/mch_start.s.old	Mon Jul  4 13:07:21 1988
--- /usr/src/sys/pdp/mch_start.s	Sat Apr 20 21:44:52 1991
***************
*** 64,69 ****
--- 64,71 ----
  	beq	1f
  	mov	$RB_SINGLE,r4		/   r4 = RB_SINGLE
  1:
+ 	mov	r1,_bootcsr		/ save boot controller csr
+ 	mov	r3,_bootdev		/ save boot device major,unit
  	mov	r4,_boothowto		/ save boot flags
  	mov	$_initflags+6,r2	/ get a pointer to the \0 in _initflags
  	mov	r4,r1			/ r1 = boot options
***************
*** 99,105 ****
   * Icode is copied out to process 1 to exec /etc/init.
   * If the exec fails, process 1 exits.
   */
! .globl	_initflags, _szicode, _boothowto
  
  ENTRY(icode)
  	mov	$argv-_icode,-(sp)
--- 101,107 ----
   * Icode is copied out to process 1 to exec /etc/init.
   * If the exec fails, process 1 exits.
   */
! .globl	_initflags, _szicode, _boothowto, _bootcsr, _bootdev
  
  ENTRY(icode)
  	mov	$argv-_icode,-(sp)
***************
*** 120,125 ****
--- 122,131 ----
  	_szicode-_icode
  _boothowto:
  	0				/ boot flags passed by boot
+ _bootdev:
+ 	0				/ boot major#,unit
+ _bootcsr:
+ 	0				/ csr of booting controller
  .text
  
  



More information about the Comp.bugs.2bsd mailing list