Module Name: src
Committed By: eeh
Date: Thu Jun 24 00:54:12 UTC 2010
Modified Files:
src/sys/arch/sparc/stand/bootblk: bootblk.fth
Log Message:
indir-block needs to be the size of a filesystem block or bad things can happen.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/sparc/stand/bootblk/bootblk.fth
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/bootblk/bootblk.fth
diff -u src/sys/arch/sparc/stand/bootblk/bootblk.fth:1.12 src/sys/arch/sparc/stand/bootblk/bootblk.fth:1.13
--- src/sys/arch/sparc/stand/bootblk/bootblk.fth:1.12 Thu Mar 11 19:28:55 2010
+++ src/sys/arch/sparc/stand/bootblk/bootblk.fth Thu Jun 24 00:54:12 2010
@@ -1,4 +1,4 @@
-\ $NetBSD: bootblk.fth,v 1.12 2010/03/11 19:28:55 eeh Exp $
+\ $NetBSD: bootblk.fth,v 1.13 2010/06/24 00:54:12 eeh Exp $
\
\ IEEE 1275 Open Firmware Boot Block
\
@@ -343,7 +343,7 @@
\ Assume UFS2 dinodes are always biger than UFS1
ufs2_dinode_SIZEOF buffer: cur-inode
-h# 2000 buffer: indir-block
+0 value indir-block
create indir-addr -1 , -1 ,
\
@@ -747,6 +747,7 @@
abort
then
dup to cur-blocksize alloc-mem to cur-block \ Allocate cur-block
+ cur-blocksize alloc-mem to indir-block
boot-debug? if ." ufs-open complete" cr then
;
@@ -755,7 +756,8 @@
cif-close -1 to boot-ihandle
then
cur-block 0<> if
- cur-block cur-blocksize free-mem
+ cur-block cur-blocksize free-mem
+ indir-block cur-blocksize free-mem
then
;
@@ -888,7 +890,7 @@
: do-boot ( bootfile -- )
." NetBSD IEEE 1275 Multi-FS Bootblock" cr
- ." Version $NetBSD: bootblk.fth,v 1.12 2010/03/11 19:28:55 eeh Exp $" cr
+ ." Version $NetBSD: bootblk.fth,v 1.13 2010/06/24 00:54:12 eeh Exp $" cr
boot-path load-file ( -- load-base )
dup 0<> if " init-program " evaluate then
;