Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun68k/stand/tapeboot Disable LOAD_BACKWARDS on tap...



details:   https://anonhg.NetBSD.org/src/rev/75aa1317185d
branches:  trunk
changeset: 765519:75aa1317185d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun May 29 10:15:30 2011 +0000

description:
Disable LOAD_BACKWARDS on tapeboot which can't seek backwards.
Fixes bootstrap tapeboot installation failure on TME reported from ryoon@.

Should be pulled up to netbsd-5.
(note netbsd-5 uses LOAD_NOTE instead of LOAD_BACKWARDS)

diffstat:

 sys/arch/sun68k/stand/tapeboot/boot.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 05026aad2c58 -r 75aa1317185d sys/arch/sun68k/stand/tapeboot/boot.c
--- a/sys/arch/sun68k/stand/tapeboot/boot.c     Sun May 29 10:06:34 2011 +0000
+++ b/sys/arch/sun68k/stand/tapeboot/boot.c     Sun May 29 10:15:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.6 2009/01/12 07:01:00 tsutsui Exp $ */
+/*     $NetBSD: boot.c,v 1.7 2011/05/29 10:15:30 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -107,7 +107,8 @@
                        printf("tapeboot: loading segment %s\n", file);
 
                marks[MARK_START] = mark_start;
-               if ((fd = loadfile(file, marks, LOAD_KERNEL)) != -1) {
+               if ((fd = loadfile(file, marks,
+                   LOAD_KERNEL & ~LOAD_BACKWARDS)) != -1) {
                        break;
                }
                printf("tapeboot: segment %s: %s\n", file, strerror(errno));



Home | Main Index | Thread Index | Old Index