From 47d6ee388af23c798699a675dede077c5527c23d Mon Sep 17 00:00:00 2001 From: is Date: Wed, 13 Sep 2000 20:15:52 +0000 Subject: [PATCH] Missing piece of PowerPC support. --- sys/arch/amiga/dev/zbus.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/arch/amiga/dev/zbus.c b/sys/arch/amiga/dev/zbus.c index 51e0808bc887..cfeb3077fffb 100644 --- a/sys/arch/amiga/dev/zbus.c +++ b/sys/arch/amiga/dev/zbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: zbus.c,v 1.43 1999/11/25 22:11:03 is Exp $ */ +/* $NetBSD: zbus.c,v 1.44 2000/09/13 20:15:52 is Exp $ */ /* * Copyright (c) 1994 Christian E. Hopps @@ -367,6 +367,15 @@ zbusmap (pa, size) nextkva += size; if (nextkva > ZBUSADDR + ZBUSAVAIL) panic("allocating too much Zorro I/O address space"); +#if defined(__powerpc__) +/* + * XXX we use direct constant mapping, so no need for: + * physaccess((caddr_t)kva, (caddr_t)pa, size, PTE_RW|PTE_I); + */ +#elif defined(__m68k__) physaccess((caddr_t)kva, (caddr_t)pa, size, PG_RW|PG_CI); +#else +ERROR no support for this target cpu yet. +#endif return((caddr_t)kva); }