Subject: port-mac68k/29179
To: None <tech-kern@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 02/01/2005 11:45:19
hi,
there're ports whose cpu_startup does uvm_map_protect in order to
prevent COW on kernel text and NULL.
i don't see why they're needed. iirc, these areas of kernel_map
should be reserved by uvm_km_init. (assuming pmap_virtual_space, etc works.)
is there something special for these ports? or can i just remove
these uvm_map_protect?
YAMAMOTO Takashi
kaeru% grep uvm_map_protect */*/machdep.c [/sys/arch]
atari/atari/machdep.c: if (uvm_map_protect(kernel_map, 0, PAGE_SIZE, UVM_PROT_NONE, TRUE) != 0)
atari/atari/machdep.c: if (uvm_map_protect(kernel_map, PAGE_SIZE, m68k_round_page(&etext),
cesfic/cesfic/machdep.c: if (uvm_map_protect(kernel_map, KERNBASE, m68k_round_page(&etext),
hp300/hp300/machdep.c: if (uvm_map_protect(kernel_map, 0, PAGE_SIZE, UVM_PROT_NONE, TRUE) != 0)
hp300/hp300/machdep.c: if (uvm_map_protect(kernel_map, PAGE_SIZE, m68k_round_page(&etext),
luna68k/luna68k/machdep.c: if (uvm_map_protect(kernel_map, 0, round_page((vaddr_t)&kernel_text),
luna68k/luna68k/machdep.c: if (uvm_map_protect(kernel_map, trunc_page((vaddr_t)&kernel_text),
mac68k/mac68k/machdep.c: if (uvm_map_protect(kernel_map,
mvme68k/mvme68k/machdep.c: if (uvm_map_protect(kernel_map, 0, round_page((vaddr_t)&kernel_text),
mvme68k/mvme68k/machdep.c: if (uvm_map_protect(kernel_map, trunc_page((vaddr_t)&kernel_text),
news68k/news68k/machdep.c: if (uvm_map_protect(kernel_map, 0, m68k_round_page(&kernel_text),
news68k/news68k/machdep.c: if (uvm_map_protect(kernel_map, m68k_trunc_page(&kernel_text),
next68k/next68k/machdep.c: if (uvm_map_protect(kernel_map, 0, round_page((vaddr_t)&kernel_text),
next68k/next68k/machdep.c: if (uvm_map_protect(kernel_map, trunc_page((vaddr_t)&kernel_text),
pc532/pc532/machdep.c: if (uvm_map_protect(kernel_map,