diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c index 3beb7438058b..ccacb1df560f 100644 --- a/sys/arch/sun3/sun3/machdep.c +++ b/sys/arch/sun3/sun3/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.145 2001/04/24 04:31:13 thorpej Exp $ */ +/* $NetBSD: machdep.c,v 1.146 2001/05/28 21:54:26 chs Exp $ */ /* * Copyright (c) 1994, 1995 Gordon W. Ross @@ -291,15 +291,6 @@ cpu_startup() format_bytes(pbuf, sizeof(pbuf), bufpages * NBPG); printf("using %d buffers containing %s of memory\n", nbuf, pbuf); - /* - * 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! - */ - if (uvm_map_protect(kernel_map, (vm_offset_t) kernel_text, - m68k_trunc_page((vm_offset_t) etext), - UVM_PROT_READ|UVM_PROT_EXEC, TRUE) != 0) - panic("can't protect kernel text"); - /* * Allocate a virtual page (for use by /dev/mem) * This page is handed to pmap_enter() therefore diff --git a/sys/arch/sun3/sun3x/machdep.c b/sys/arch/sun3/sun3x/machdep.c index b72927d16446..66286c1f82b8 100644 --- a/sys/arch/sun3/sun3x/machdep.c +++ b/sys/arch/sun3/sun3x/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.66 2001/05/28 20:56:54 chs Exp $ */ +/* $NetBSD: machdep.c,v 1.67 2001/05/28 21:54:27 chs Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -293,15 +293,6 @@ cpu_startup() format_bytes(pbuf, sizeof(pbuf), bufpages * NBPG); printf("using %d buffers containing %s of memory\n", nbuf, pbuf); - /* - * 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! - */ - if (uvm_map_protect(kernel_map, (vm_offset_t) kernel_text, - m68k_trunc_page((vm_offset_t) etext), - UVM_PROT_READ|UVM_PROT_EXEC, TRUE) != 0) - panic("can't protect kernel text"); - /* * Allocate a virtual page (for use by /dev/mem) * This page is handed to pmap_enter() therefore