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

This commit is contained in:
phx 2010-01-24 15:39:50 +00:00
parent 39c974917d
commit 949a5c1e8c
1 changed files with 4 additions and 15 deletions

View File

@ -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 CHIPMEMADDR;
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 @@ chipmem_steal(long amount)
}
/*
* 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));
}