diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 23:37:50 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 23:37:50 -0400 |
| commit | 10f2a2b0f68abf39c06cf519cbc1740fa50f900b (patch) | |
| tree | 70b33e4437ae0d5ac92f56c60b048756bde7f3e4 /arch/x86/kernel/reboot.c | |
| parent | 8814011679d1a47d8b0158fc991727a5859471a0 (diff) | |
| parent | b40827fa7268fda8a62490728a61c2856f33830b (diff) | |
Merge branch 'x86-trampoline-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-trampoline-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86-32, mm: Add an initial page table for core bootstrapping
Diffstat (limited to 'arch/x86/kernel/reboot.c')
| -rw-r--r-- | arch/x86/kernel/reboot.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 7a4cf14223ba..f7f53dcd3e0a 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c | |||
| @@ -371,16 +371,10 @@ void machine_real_restart(const unsigned char *code, int length) | |||
| 371 | CMOS_WRITE(0x00, 0x8f); | 371 | CMOS_WRITE(0x00, 0x8f); |
| 372 | spin_unlock(&rtc_lock); | 372 | spin_unlock(&rtc_lock); |
| 373 | 373 | ||
| 374 | /* Remap the kernel at virtual address zero, as well as offset zero | ||
| 375 | from the kernel segment. This assumes the kernel segment starts at | ||
| 376 | virtual address PAGE_OFFSET. */ | ||
| 377 | memcpy(swapper_pg_dir, swapper_pg_dir + KERNEL_PGD_BOUNDARY, | ||
| 378 | sizeof(swapper_pg_dir [0]) * KERNEL_PGD_PTRS); | ||
| 379 | |||
| 380 | /* | 374 | /* |
| 381 | * Use `swapper_pg_dir' as our page directory. | 375 | * Switch back to the initial page table. |
| 382 | */ | 376 | */ |
| 383 | load_cr3(swapper_pg_dir); | 377 | load_cr3(initial_page_table); |
| 384 | 378 | ||
| 385 | /* Write 0x1234 to absolute memory location 0x472. The BIOS reads | 379 | /* Write 0x1234 to absolute memory location 0x472. The BIOS reads |
| 386 | this on booting to tell it to "Bypass memory test (also warm | 380 | this on booting to tell it to "Bypass memory test (also warm |
