Commit 0bd3420b authored by James Bottomley's avatar James Bottomley

Simple fix: move load_cr3 to new reboot.c file

parent 9628e062
...@@ -206,7 +206,7 @@ void machine_real_restart(unsigned char *code, int length) ...@@ -206,7 +206,7 @@ void machine_real_restart(unsigned char *code, int length)
/* /*
* Use `swapper_pg_dir' as our page directory. * Use `swapper_pg_dir' as our page directory.
*/ */
asm volatile("movl %0,%%cr3": :"r" (__pa(swapper_pg_dir))); load_cr3(swapper_pg_dir);
/* Write 0x1234 to absolute memory location 0x472. The BIOS reads /* Write 0x1234 to absolute memory location 0x472. The BIOS reads
this on booting to tell it to "Bypass memory test (also warm this on booting to tell it to "Bypass memory test (also warm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment