From 05f929580ff72d517b7c76cf22802a2cb50d62df Mon Sep 17 00:00:00 2001 From: chuck Date: Mon, 18 Sep 1995 20:24:53 +0000 Subject: [PATCH] read superblock into &sblock rather than LOADADDR. we can't read into LOADADDR because it can't be mapped into DVMA space. this fixes a dvma panic on a sun4 boot from an xd disk. --- sys/arch/sparc/stand/bootxx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc/stand/bootxx.c b/sys/arch/sparc/stand/bootxx.c index 24f112381700..614e4f8b2437 100644 --- a/sys/arch/sparc/stand/bootxx.c +++ b/sys/arch/sparc/stand/bootxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: bootxx.c,v 1.4 1995/09/16 23:20:27 pk Exp $ */ +/* $NetBSD: bootxx.c,v 1.5 1995/09/18 20:24:53 chuck Exp $ */ /* * Copyright (c) 1994 Paul Kranenburg @@ -77,10 +77,9 @@ main() */ if ((io.f_dev->dv_strategy)(io.f_devdata, F_READ, btodb(SBOFF), SBSIZE, - (char *)LOADADDR, &n) || n != SBSIZE) { + (char *)&sblock, &n) || n != SBSIZE) { panic("%s: can't read superblock", progname); } - bcopy(LOADADDR, sblock, SBSIZE); fs = (struct fs *)sblock; (void)loadboot(&io, LOADADDR);