summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-26 14:29:59 +0000
committerdfr <dfr@FreeBSD.org>1998-09-26 14:29:59 +0000
commit86ef5d7966428ec64d209e9b55d1f7ddad4bdc76 (patch)
tree9dafb2d302a3acf49fc86acdf7c645544ba7957b /sys
parent3a723223f47d90b5917bfe89f695c2f461005ef0 (diff)
downloadFreeBSD-src-86ef5d7966428ec64d209e9b55d1f7ddad4bdc76.zip
FreeBSD-src-86ef5d7966428ec64d209e9b55d1f7ddad4bdc76.tar.gz
Don't set script to vaddr2 on the alpha - it can't access scripts in device
memory using simple pointers.
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/ncr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 1bb445c..407a75d 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.132 1998/09/22 04:56:08 gibbs Exp $
+** $Id: ncr.c,v 1.133 1998/09/22 21:42:46 ken Exp $
**
** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family.
**
@@ -1357,7 +1357,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.132 1998/09/22 04:56:08 gibbs Exp $\n";
+ "\n$Id: ncr.c,v 1.133 1998/09/22 21:42:46 ken Exp $\n";
static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
@@ -3661,7 +3661,11 @@ ncr_attach (pcici_t config_id, int unit)
** Allocate structure for script relocation.
*/
if (np->vaddr2 != NULL) {
+#ifdef __alpha__
+ np->script = NULL;
+#else
np->script = (struct script *) np->vaddr2;
+#endif
np->p_script = np->paddr2;
} else if (sizeof (struct script) > PAGE_SIZE) {
np->script = (struct script*) vm_page_alloc_contig
OpenPOWER on IntegriCloud