Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern/arch/i386 Give the kernel pmap a c...
details: https://anonhg.NetBSD.org/src/rev/0c34b0fcde6b
branches: trunk
changeset: 755717:0c34b0fcde6b
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jun 17 08:22:02 2010 +0000
description:
Give the kernel pmap a container in case some tries to access it
via some pmap.h macro.
diffstat:
sys/rump/librump/rumpkern/arch/i386/pmap_x86.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 7b29790d5047 -r 0c34b0fcde6b sys/rump/librump/rumpkern/arch/i386/pmap_x86.c
--- a/sys/rump/librump/rumpkern/arch/i386/pmap_x86.c Thu Jun 17 08:19:32 2010 +0000
+++ b/sys/rump/librump/rumpkern/arch/i386/pmap_x86.c Thu Jun 17 08:22:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_x86.c,v 1.1 2010/06/16 11:45:21 pooka Exp $ */
+/* $NetBSD: pmap_x86.c,v 1.2 2010/06/17 08:22:02 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -26,13 +26,14 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_x86.c,v 1.1 2010/06/16 11:45:21 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_x86.c,v 1.2 2010/06/17 08:22:02 pooka Exp $");
#include <sys/param.h>
#include <uvm/uvm_extern.h>
-struct pmap *const kernel_pmap_ptr = (struct pmap *const)-1;
+static struct pmap thepmap;
+struct pmap *const kernel_pmap_ptr = &thepmap;
void
pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot, u_int fl)
Home |
Main Index |
Thread Index |
Old Index