1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Wire the kernel text RWX, rather than RX. We're not quite ready

for having kernel text non-writable, because we still need to
apply relocations. On top of that, the PBVM page table has all
pages marked as RWX, so it's an inconsistency to begin with.
This commit is contained in:
Marcel Moolenaar 2011-11-17 15:51:03 +00:00
parent a897298940
commit 1e6ca2a464
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227629

View File

@ -187,7 +187,7 @@ mmu_setup_paged(struct bootinfo *bi)
pa = ia64_va2pa(ia64_text_start, &ia64_text_size);
ia64_text_size = sz; /* XXX */
shft = sz2shft(ia64_text_start, ia64_text_size);
shft = mmu_wire(ia64_text_start, (uintptr_t)pa, shft, PTE_AR_RX);
shft = mmu_wire(ia64_text_start, (uintptr_t)pa, shft, PTE_AR_RWX);
ia64_copyin(&shft, (uintptr_t)&bi->bi_text_mapped, 4);
/* Wire as much of the data segment as well. */