diff options
-rw-r--r-- | i386/i386/mp_desc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index 03b2ea68..446fedb5 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -210,6 +210,9 @@ paging_enable(void) /* Turn paging on. * TODO: Why does setting the WP bit here cause a crash? */ +#if PAE + set_cr4(get_cr4() | CR4_PAE); +#endif set_cr0(get_cr0() | CR0_PG /* | CR0_WP */); set_cr0(get_cr0() & ~(CR0_CD | CR0_NW)); if (CPU_HAS_FEATURE(CPU_FEATURE_PGE)) |