Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/bootblk indir-block needs to be the siz...



details:   https://anonhg.NetBSD.org/src/rev/438ec3189b8b
branches:  trunk
changeset: 755823:438ec3189b8b
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Jun 24 00:54:12 2010 +0000

description:
indir-block needs to be the size of a filesystem block or bad things can happen.

diffstat:

 sys/arch/sparc/stand/bootblk/bootblk.fth |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r a1716536b35d -r 438ec3189b8b sys/arch/sparc/stand/bootblk/bootblk.fth
--- a/sys/arch/sparc/stand/bootblk/bootblk.fth  Wed Jun 23 21:03:16 2010 +0000
+++ b/sys/arch/sparc/stand/bootblk/bootblk.fth  Thu Jun 24 00:54:12 2010 +0000
@@ -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
 ; 



Home | Main Index | Thread Index | Old Index