- Moved the uninitialized variables from the data to the bss section.

- Fixed typos in comment.
This commit is contained in:
KATO Takenori 2007-03-17 05:30:03 +00:00
parent 8db477416c
commit 8a44b47598
3 changed files with 19 additions and 14 deletions

View file

@ -60,7 +60,7 @@ boot:
movw parttable(%si), %ax
movw %ax, b_cylinder
# Step 2: Calculate egment address of bootstrap routine
# Step 2: Calculate the segment address of the bootstrap routine
movw $0x1d00, %ax
movw b_secsize, %cx
shrw %cx

View file

@ -60,7 +60,7 @@ normalmode:
jmp exit # No hard drives
drives_found:
# Setup sector size depended parameters
# Setup sector size dependent parameters
movw %si, %cx # %cx = number of devices
setup_loop:
movw %cx, %di
@ -254,16 +254,9 @@ showunit:
ret
.data
.global curdevice, daua, secsize, defflagoff, defpartoff
.global maxpart, partoff, ndevice
.global curdevice, ndevice
ndevice: .word 0 # number of device
curdevice: .word 0 # current device
daua: .space 12 # DA/DU list
secsize: .space 12 * 2 # Sector soize
defflagoff: .space 12 * 2
defpartoff: .space 12 * 2
maxpart: .space 12 * 2
partoff: .space 12 * 2
.global ishireso
ishireso: .byte 0
@ -288,3 +281,13 @@ msg_usage9: .asciz "LEGEND"
msg_usage10: .asciz ">>: selected device/slice"
msg_usage11: .asciz "*: default slice to boot"
msg_usage12: .asciz "!: unbootable slice"
.bss
.global daua, secsize, defflagoff, defpartoff
.global maxpart, partoff
daua: .space 12 # DA/DU list
secsize: .space 12 * 2 # Sector soize
defflagoff: .space 12 * 2
defpartoff: .space 12 * 2
maxpart: .space 12 * 2
partoff: .space 12 * 2

View file

@ -284,11 +284,13 @@ no_scsi_unit:
ret
.data
.global partnum, parttable, defpartflag, defpartnum, npartition
partnum: .space 32 # Index of parttable
parttable: .space 1024 # Copy of valid partition table
.global defpartflag, defpartnum, npartition
defpartflag: .byte 0
defpartnum: .byte 0
npartition: .word 0 # number of partitions
.bss
iplbuf: .space 0x400
.global partnum, parttable
iplbuf: .space 0x400 # Read buffer for IPL
partnum: .space 32 # Index of parttable
parttable: .space 1024 # Copy of valid partition table