Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amigappc/amigappc We will always return chip mem in...



details:   https://anonhg.NetBSD.org/src/rev/dad755c7da32
branches:  trunk
changeset: 751088:dad755c7da32
user:      phx <phx%NetBSD.org@localhost>
date:      Sun Jan 24 15:39:50 2010 +0000

description:
We will always return chip mem instead of z2 mem for amigappc.

diffstat:

 sys/arch/amigappc/amigappc/amiga_init.c |  19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diffs (51 lines):

diff -r 018869f59d27 -r dad755c7da32 sys/arch/amigappc/amigappc/amiga_init.c
--- a/sys/arch/amigappc/amigappc/amiga_init.c   Sun Jan 24 15:29:10 2010 +0000
+++ b/sys/arch/amigappc/amigappc/amiga_init.c   Sun Jan 24 15:39:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amiga_init.c,v 1.8 2009/07/21 09:49:15 phx Exp $       */
+/*     $NetBSD: amiga_init.c,v 1.9 2010/01/24 15:39:50 phx Exp $       */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.8 2009/07/21 09:49:15 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.9 2010/01/24 15:39:50 phx Exp $");
 
 #include <sys/param.h>
 #include <amiga/amiga/cc.h>
@@ -47,10 +47,6 @@
 vaddr_t chipmem_start;
 vaddr_t chipmem_end;
 
-vaddr_t z2mem_start;
-static vaddr_t z2mem_end;
-int use_z2_mem = 0;            /* usually no Z2-mem on A3000/A4000 */
-
 u_long boot_fphystart, boot_fphysize, cphysize;
 u_long boot_flags;
 
@@ -125,19 +121,12 @@
 }
 
 /*
- * XXX
- * used by certain drivers currently to allocate zorro II memory
- * for bounce buffers, if use_z2_mem is NULL, chipmem will be
- * returned instead.
- * XXX
+ * Used by certain drivers currently to allocate zorro II or chip mem
+ * for bounce buffers. For amigappc we will only return chip memory.
  */
 void *
 alloc_z2mem(long amount)
 {
 
-       if (use_z2_mem && z2mem_end && (z2mem_end - amount) >= z2mem_start) {
-               z2mem_end -= amount;
-               return ((void *)z2mem_end);
-       }
        return (alloc_chipmem(amount));
 }



Home | Main Index | Thread Index | Old Index