Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309149
b: refs/heads/master
c: 0247428
h: refs/heads/master
i:
  309147: f9f34eb
v: v3
  • Loading branch information
H. Peter Anvin committed May 8, 2012
1 parent 614adf4 commit 3783b39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 487f50ffeb142d8f86fff6e43a8852ce3d46c173
refs/heads/master: 024742861124ef26dae4cfc620250f8f47ac934a
10 changes: 6 additions & 4 deletions trunk/arch/x86/realmode/rm/trampoline_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ no_longmode:
jmp no_longmode
#include "../kernel/verify_cpu.S"

.section ".text32","ax"
.code32
.balign 4
ENTRY(startup_32)
Expand Down Expand Up @@ -114,6 +115,7 @@ ENTRY(startup_32)
*/
ljmpl *(pa_startup_64_vector)

.section ".text64","ax"
.code64
.balign 4
ENTRY(startup_64)
Expand All @@ -123,7 +125,8 @@ ENTRY(startup_64)
addl %esi, %eax
jmp *%rax

# Careful these need to be in the same 64K segment as the above;
.section ".rodata","a"
.balign 16
tidt:
.word 0 # idt limit = 0
.word 0, 0 # idt base = 0L
Expand Down Expand Up @@ -153,9 +156,8 @@ startup_64_vector:
.word __KERNEL_CS, 0

.data

.balign 4
ENTRY(trampoline_status)
GLOBAL(trampoline_status)
.long 0

trampoline_stack:
Expand All @@ -164,7 +166,7 @@ trampoline_stack_end:

.globl level3_ident_pgt
.globl level3_kernel_pgt
ENTRY(trampoline_level4_pgt)
GLOBAL(trampoline_level4_pgt)
level3_ident_pgt: .quad 0
.fill 510,8,0
level3_kernel_pgt: .quad 0
Expand Down

0 comments on commit 3783b39

Please sign in to comment.