Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src as a stop-gap measure to allow boot-from-disk to work on hppa,
details: https://anonhg.NetBSD.org/src/rev/367f14aa02a8
branches: trunk
changeset: 580978:367f14aa02a8
user: chs <chs%NetBSD.org@localhost>
date: Wed May 18 13:58:10 2005 +0000
description:
as a stop-gap measure to allow boot-from-disk to work on hppa,
add some padding to the end of struct scsipi_xfer on that platform.
diffstat:
doc/HACKS | 13 ++++++++++++-
sys/dev/scsipi/scsipiconf.h | 7 ++++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r 0de947637f7a -r 367f14aa02a8 doc/HACKS
--- a/doc/HACKS Wed May 18 12:57:34 2005 +0000
+++ b/doc/HACKS Wed May 18 13:58:10 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.46 2005/05/11 13:10:21 chs Exp $
+# $NetBSD: HACKS,v 1.47 2005/05/18 13:58:10 chs Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@@ -455,3 +455,14 @@
gcc 3.3.3 generates bad code for dfa.c with -O2,
reduce optimization to -O1 to avoid the bug.
kcah
+
+ hack hppa boot-from-disk memory corruption
+ cdate Wed May 18 06:56:07 PDT 2005
+ who chs
+ file src/sys/dev/scsipi/scsipiconf.h : 1.98
+ descr
+ There is some bug with DMA on hppa that corrupts scsipi_xfer
+ structures, but it only shows up when booting from disk.
+ For now, we'll add some padding to scsipi_xfer so that
+ the corrupted memory is not otherwise used.
+ kcah
diff -r 0de947637f7a -r 367f14aa02a8 sys/dev/scsipi/scsipiconf.h
--- a/sys/dev/scsipi/scsipiconf.h Wed May 18 12:57:34 2005 +0000
+++ b/sys/dev/scsipi/scsipiconf.h Wed May 18 13:58:10 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsipiconf.h,v 1.97 2005/02/27 00:27:48 perry Exp $ */
+/* $NetBSD: scsipiconf.h,v 1.98 2005/05/18 13:58:10 chs Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2004 The NetBSD Foundation, Inc.
@@ -533,6 +533,11 @@
struct scsipi_generic cmdstore
__attribute__ ((aligned (4)));/* stash the command in here */
+
+#ifdef __hppa__
+ /* XXX temp hack until we fix the memory corruption bug */
+ u_int8_t pad[32];
+#endif
};
/*
Home |
Main Index |
Thread Index |
Old Index