Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/xscale further de-cargocult the new mmap() methods
details: https://anonhg.NetBSD.org/src/rev/64120d5ce7c4
branches: trunk
changeset: 994780:64120d5ce7c4
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Nov 21 19:03:18 2018 +0000
description:
further de-cargocult the new mmap() methods
diffstat:
sys/arch/arm/xscale/i80321_space.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (47 lines):
diff -r e7c593c1a753 -r 64120d5ce7c4 sys/arch/arm/xscale/i80321_space.c
--- a/sys/arch/arm/xscale/i80321_space.c Wed Nov 21 17:54:42 2018 +0000
+++ b/sys/arch/arm/xscale/i80321_space.c Wed Nov 21 19:03:18 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i80321_space.c,v 1.17 2018/11/21 09:49:39 thorpej Exp $ */
+/* $NetBSD: i80321_space.c,v 1.18 2018/11/21 19:03:18 macallan Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i80321_space.c,v 1.17 2018/11/21 09:49:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i80321_space.c,v 1.18 2018/11/21 19:03:18 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -306,9 +306,6 @@
} else
return (-1);
- if ((bpa) >= (busbase + VERDE_OUT_XLATE_IO_WIN_SIZE))
- return (-1);
-
return (arm_btop(winpaddr + (bpa - busbase)));
}
@@ -460,9 +457,6 @@
physbase = VERDE_OUT_DIRECT_WIN_BASE;
} else
return (-1);
- if (bpa >= (VERDE_OUT_DIRECT_WIN_BASE +
- VERDE_OUT_DIRECT_WIN_SIZE))
- return (-1);
#else
if (bpa >= sc->sc_owin[0].owin_xlate_lo &&
bpa < (sc->sc_owin[0].owin_xlate_lo +
@@ -471,8 +465,6 @@
physbase = sc->sc_iwin[1].iwin_xlate;
} else
return (-1);
- if (bpa >= (busbase + VERDE_OUT_XLATE_MEM_WIN_SIZE))
- return (-1);
#endif
pa = trunc_page((bpa - busbase) + physbase);
Home |
Main Index |
Thread Index |
Old Index