Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/hp300 hp300 part of the following change,



details:   https://anonhg.NetBSD.org/src/rev/dc1e8ce5fc17
branches:  trunk
changeset: 573842:dc1e8ce5fc17
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Feb 12 08:17:38 2005 +0000

description:
hp300 part of the following change,
which was missed due to a sticky tag in my local tree.
pointed by Izumi Tsutsui.

> remove uvm_map_protect from cpu_startup of several ports.
> - they shouldn't be needed with the current fault handler.
> - they causes assertion failure with the recent vm_map implementation.
>
> discussed on tech-kern@.  reviewed by Chuck Silvers.
> PR/29179 from Julio M. Merino Vidal.

diffstat:

 sys/arch/hp300/hp300/machdep.c |  25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diffs (53 lines):

diff -r 8454956b109f -r dc1e8ce5fc17 sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c    Sat Feb 12 05:48:57 2005 +0000
+++ b/sys/arch/hp300/hp300/machdep.c    Sat Feb 12 08:17:38 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.181 2005/01/02 12:03:13 tsutsui Exp $    */
+/*     $NetBSD: machdep.c,v 1.182 2005/02/12 08:17:38 yamt Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.181 2005/01/02 12:03:13 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.182 2005/02/12 08:17:38 yamt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_hpux.h"
@@ -320,7 +320,6 @@
 void
 cpu_startup(void)
 {
-       extern char *etext;
        vaddr_t minaddr, maxaddr;
        char pbuf[9];
 #ifdef DEBUG
@@ -374,26 +373,6 @@
        printf("avail memory = %s\n", pbuf);
 
        /*
-        * Tell the VM system that page 0 isn't mapped.
-        *
-        * XXX This is bogus; should just fix KERNBASE and
-        * XXX VM_MIN_KERNEL_ADDRESS, but not right now.
-        */
-       if (uvm_map_protect(kernel_map, 0, PAGE_SIZE, UVM_PROT_NONE, TRUE) != 0)
-               panic("can't mark page 0 off-limits");
-
-       /*
-        * Tell the VM system that writing to kernel text isn't allowed.
-        * If we don't, we might end up COW'ing the text segment!
-        *
-        * XXX Should be m68k_trunc_page(&kernel_text) instead
-        * XXX of PAGE_SIZE.
-        */
-       if (uvm_map_protect(kernel_map, PAGE_SIZE, m68k_round_page(&etext),
-           UVM_PROT_READ|UVM_PROT_EXEC, TRUE) != 0)
-               panic("can't protect kernel text");
-
-       /*
         * Set up CPU-specific registers, cache, etc.
         */
        initcpu();



Home | Main Index | Thread Index | Old Index