aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/pmjump.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/boot/pmjump.S b/arch/x86/boot/pmjump.S
index 2e559233725a..fa6bed1fac14 100644
--- a/arch/x86/boot/pmjump.S
+++ b/arch/x86/boot/pmjump.S
@@ -28,17 +28,19 @@
28 * void protected_mode_jump(u32 entrypoint, u32 bootparams); 28 * void protected_mode_jump(u32 entrypoint, u32 bootparams);
29 */ 29 */
30protected_mode_jump: 30protected_mode_jump:
31 xorl %ebx, %ebx # Flag to indicate this is a boot
32 movl %edx, %esi # Pointer to boot_params table 31 movl %edx, %esi # Pointer to boot_params table
33 movl %eax, 2f # Patch ljmpl instruction 32 movl %eax, 2f # Patch ljmpl instruction
34 jmp 1f # Short jump to flush instruction q.
35 33
361:
37 movw $__BOOT_DS, %cx 34 movw $__BOOT_DS, %cx
35 xorl %ebx, %ebx # Per the 32-bit boot protocol
36 xorl %ebp, %ebp # Per the 32-bit boot protocol
37 xorl %edi, %edi # Per the 32-bit boot protocol
38 38
39 movl %cr0, %edx 39 movl %cr0, %edx
40 orb $1, %dl # Protected mode (PE) bit 40 orb $1, %dl # Protected mode (PE) bit
41 movl %edx, %cr0 41 movl %edx, %cr0
42 jmp 1f # Short jump to serialize on 386/486
431:
42 44
43 movw %cx, %ds 45 movw %cx, %ds
44 movw %cx, %es 46 movw %cx, %es