Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch with the new km API, we must longer explicitly un...
details: https://anonhg.NetBSD.org/src/rev/ddf91b3e199d
branches: yamt-km
changeset: 573352:ddf91b3e199d
user: chs <chs%NetBSD.org@localhost>
date: Fri Feb 18 14:38:28 2005 +0000
description:
with the new km API, we must longer explicitly unmap and free the
st_map pages, so don't. also, use the correct km type for freeing the
st_map space on amiga.
diffstat:
sys/arch/amiga/amiga/pmap.c | 11 +++--------
sys/arch/atari/atari/pmap.c | 7 +------
sys/arch/m68k/m68k/pmap_motorola.c | 9 ++-------
3 files changed, 6 insertions(+), 21 deletions(-)
diffs (88 lines):
diff -r 5824fffcb15a -r ddf91b3e199d sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c Fri Feb 18 14:35:09 2005 +0000
+++ b/sys/arch/amiga/amiga/pmap.c Fri Feb 18 14:38:28 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.111.4.2 2005/01/31 12:16:29 yamt Exp $ */
+/* $NetBSD: pmap.c,v 1.111.4.3 2005/02/18 14:38:28 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.111.4.2 2005/01/31 12:16:29 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.111.4.3 2005/02/18 14:38:28 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2212,14 +2212,9 @@
printf("remove: free stab %p\n",
ptpmap->pm_stab);
#endif
- pmap_remove(pmap_kernel(),
- (vaddr_t)ptpmap->pm_stab,
- (vaddr_t)ptpmap->pm_stab + AMIGA_STSIZE);
- uvm_pagefree(PHYS_TO_VM_PAGE((paddr_t)
- ptpmap->pm_stpa));
uvm_km_free(kernel_map,
(vaddr_t)ptpmap->pm_stab, AMIGA_STSIZE,
- UVM_KMF_VAONLY);
+ UVM_KMF_WIRED);
ptpmap->pm_stab = Segtabzero;
ptpmap->pm_stpa = Segtabzeropa;
#if defined(M68040) || defined(M68060)
diff -r 5824fffcb15a -r ddf91b3e199d sys/arch/atari/atari/pmap.c
--- a/sys/arch/atari/atari/pmap.c Fri Feb 18 14:35:09 2005 +0000
+++ b/sys/arch/atari/atari/pmap.c Fri Feb 18 14:38:28 2005 +0000
@@ -106,7 +106,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.87.4.3 2005/01/31 12:19:14 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.87.4.4 2005/02/18 14:38:29 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2164,11 +2164,6 @@
printf("remove: free stab %p\n",
ptpmap->pm_stab);
#endif
- pmap_remove(pmap_kernel(),
- (vaddr_t)ptpmap->pm_stab,
- (vaddr_t)ptpmap->pm_stab + ATARI_STSIZE);
- uvm_pagefree(PHYS_TO_VM_PAGE((paddr_t)
- ptpmap->pm_stpa));
uvm_km_free(kernel_map,
(vaddr_t)ptpmap->pm_stab, ATARI_STSIZE,
UVM_KMF_WIRED);
diff -r 5824fffcb15a -r ddf91b3e199d sys/arch/m68k/m68k/pmap_motorola.c
--- a/sys/arch/m68k/m68k/pmap_motorola.c Fri Feb 18 14:35:09 2005 +0000
+++ b/sys/arch/m68k/m68k/pmap_motorola.c Fri Feb 18 14:38:28 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_motorola.c,v 1.12.4.2 2005/01/27 14:30:33 yamt Exp $ */
+/* $NetBSD: pmap_motorola.c,v 1.12.4.3 2005/02/18 14:38:29 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.12.4.2 2005/01/27 14:30:33 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.12.4.3 2005/02/18 14:38:29 chs Exp $");
#include "opt_compat_hpux.h"
@@ -2421,11 +2421,6 @@
PMAP_DPRINTF(PDB_REMOVE|PDB_SEGTAB,
("remove: free stab %p\n",
ptpmap->pm_stab));
- pmap_remove(pmap_kernel(),
- (vaddr_t)ptpmap->pm_stab,
- (vaddr_t)ptpmap->pm_stab + M68K_STSIZE);
- uvm_pagefree(PHYS_TO_VM_PAGE((paddr_t)
- ptpmap->pm_stpa));
uvm_km_free(st_map, (vaddr_t)ptpmap->pm_stab,
M68K_STSIZE, UVM_KMF_WIRED);
ptpmap->pm_stab = Segtabzero;
Home |
Main Index |
Thread Index |
Old Index