Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73117
b: refs/heads/master
c: 9f259cc
h: refs/heads/master
i:
  73115: 438d89a
v: v3
  • Loading branch information
H. Peter Anvin committed Nov 5, 2007
1 parent 2ca521b commit cc1c895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ed192906a2144ebc8ca2925a85d27b9c5355668
refs/heads/master: 9f259cc59ba45b8db401d60be9700e275676fb15
4 changes: 3 additions & 1 deletion trunk/arch/x86/boot/pmjump.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
* void protected_mode_jump(u32 entrypoint, u32 bootparams);
*/
protected_mode_jump:
xorl %ebx, %ebx # Flag to indicate this is a boot
movl %edx, %esi # Pointer to boot_params table
movl %eax, 2f # Patch ljmpl instruction

movw $__BOOT_DS, %cx
xorl %ebx, %ebx # Per the 32-bit boot protocol
xorl %ebp, %ebp # Per the 32-bit boot protocol
xorl %edi, %edi # Per the 32-bit boot protocol

movl %cr0, %edx
orb $1, %dl # Protected mode (PE) bit
Expand Down

0 comments on commit cc1c895

Please sign in to comment.