Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k Fix leftover botch in rev 1.48:
details: https://anonhg.NetBSD.org/src/rev/3be0dee16d42
branches: trunk
changeset: 749875:3be0dee16d42
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Dec 11 19:36:05 2009 +0000
description:
Fix leftover botch in rev 1.48:
Remove initialization of protection_codes[] which has been movde into
pmap_bootstrap_finalize().
diffstat:
sys/arch/x68k/x68k/pmap_bootstrap.c | 24 ++----------------------
1 files changed, 2 insertions(+), 22 deletions(-)
diffs (45 lines):
diff -r b75ac96da457 -r 3be0dee16d42 sys/arch/x68k/x68k/pmap_bootstrap.c
--- a/sys/arch/x68k/x68k/pmap_bootstrap.c Fri Dec 11 18:57:44 2009 +0000
+++ b/sys/arch/x68k/x68k/pmap_bootstrap.c Fri Dec 11 19:36:05 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_bootstrap.c,v 1.48 2009/12/06 06:41:31 tsutsui Exp $ */
+/* $NetBSD: pmap_bootstrap.c,v 1.49 2009/12/11 19:36:05 tsutsui Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.48 2009/12/06 06:41:31 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.49 2009/12/11 19:36:05 tsutsui Exp $");
#include "opt_m680x0.h"
@@ -408,26 +408,6 @@
RELOC(virtual_end, vaddr_t) = VM_MAX_KERNEL_ADDRESS;
/*
- * Initialize protection array.
- * XXX don't use a switch statement, it might produce an
- * absolute "jmp" table.
- */
- {
- u_int *kp;
-
- kp = &RELOC(protection_codes, u_int);
- kp[VM_PROT_NONE|VM_PROT_NONE|VM_PROT_NONE] = 0;
- kp[VM_PROT_READ|VM_PROT_NONE|VM_PROT_NONE] = PG_RO;
- kp[VM_PROT_READ|VM_PROT_NONE|VM_PROT_EXECUTE] = PG_RO;
- kp[VM_PROT_NONE|VM_PROT_NONE|VM_PROT_EXECUTE] = PG_RO;
- kp[VM_PROT_NONE|VM_PROT_WRITE|VM_PROT_NONE] = PG_RW;
- kp[VM_PROT_NONE|VM_PROT_WRITE|VM_PROT_EXECUTE] = PG_RW;
- kp[VM_PROT_READ|VM_PROT_WRITE|VM_PROT_NONE] = PG_RW;
- kp[VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE] = PG_RW;
- }
-
-
- /*
* Allocate some fixed, special purpose kernel virtual addresses
*/
{
Home |
Main Index |
Thread Index |
Old Index