Author: marcel
Date: Thu Nov 17 15:51:03 2011
New Revision: 227629
URL: http://svn.freebsd.org/changeset/base/227629

Log:
  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.

Modified:
  head/sys/boot/ia64/common/exec.c

Modified: head/sys/boot/ia64/common/exec.c
==============================================================================
--- head/sys/boot/ia64/common/exec.c    Thu Nov 17 15:49:42 2011        
(r227628)
+++ head/sys/boot/ia64/common/exec.c    Thu Nov 17 15:51:03 2011        
(r227629)
@@ -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. */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to