summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/i386/locore.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index 2579ba7..bd25fe8 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -788,7 +788,12 @@ no_kernend:
/* Map read-only from zero to the beginning of the kernel text section */
xorl %eax, %eax
+#ifdef BURN_BRIDGES
xorl %edx,%edx
+#else
+/* XXX emulate bugs in the old PSE code so that apm works */
+ movl $PG_RW,%edx
+#endif
movl $R(btext),%ecx
addl $PAGE_MASK,%ecx
shrl $PAGE_SHIFT,%ecx
OpenPOWER on IntegriCloud