The bus_space_mmap() returns a physaddr, not a page, on the PPC.
(This is broken in some (all?) of the PPC ports, it seems.)
This commit is contained in:
parent
a4880cb372
commit
e1dd8d6b94
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_space.c,v 1.1 2002/05/30 20:02:04 augustss Exp $ */
|
||||
/* $NetBSD: bus_space.c,v 1.2 2003/01/12 23:46:11 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -79,6 +79,8 @@
|
||||
#include <sys/extent.h>
|
||||
#include <sys/mbuf.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
#include <machine/bus.h>
|
||||
|
||||
#include <dev/ic/cpc700reg.h>
|
||||
@ -134,7 +136,7 @@ pmppc_memio_mmap(t, bpa, offset, prot, flags)
|
||||
off_t offset;
|
||||
int prot, flags;
|
||||
{
|
||||
return ((bpa + offset) >> PGSHIFT);
|
||||
return (trunc_page(bpa + offset));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user