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.
This commit is contained in:
parent
9cb572b112
commit
a4ef51503f
13
doc/HACKS
13
doc/HACKS
|
@ -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 @@ port hppa
|
|||
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
|
||||
|
|
|
@ -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_xfer {
|
|||
|
||||
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
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue