Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235163
b: refs/heads/master
c: ee1b06e
h: refs/heads/master
i:
  235161: 27522a3
  235159: 7a99b73
v: v3
  • Loading branch information
H. Peter Anvin committed Feb 18, 2011
1 parent 9b4dec3 commit 64bdec8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 3d35ac346e981162eeba391e496faceed4753e7b
refs/heads/master: ee1b06ea6aed979da3b4e6b6ffea98ad55a3c5c1
10 changes: 7 additions & 3 deletions trunk/arch/x86/kernel/reboot_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ r_base = .
1: popl %ebx
subl $1b, %ebx

/* Compute the equivalent real-mode segment */
movl %ebx, %ecx
shrl $4, %ecx

/* Patch post-real-mode segment jump */
movw dispatch_table(%ebx,%ecx,2),%cx
movw %cx, 101f(%ebx)
movw %ax, 102f(%ebx)
movw dispatch_table(%ebx,%eax,2),%ax
movw %ax, 101f(%ebx)
movw %cx, 102f(%ebx)

/* Set up the IDT for real mode. */
lidtl machine_real_restart_idt(%ebx)
Expand Down

0 comments on commit 64bdec8

Please sign in to comment.