Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339127
b: refs/heads/master
c: 42e78e9
h: refs/heads/master
i:
  339125: 154f551
  339123: 75bbff3
  339119: 70b7dad
v: v3
  • Loading branch information
Fenghua Yu authored and H. Peter Anvin committed Nov 14, 2012
1 parent ed74f4b commit 7db12a6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e32d479db6079dd5d4309aa66aecbcf2664a5fe
refs/heads/master: 42e78e9719aa0c76711e2731b19c90fe5ae05278
16 changes: 16 additions & 0 deletions trunk/arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,22 @@ ENTRY(secondary_startup_64)
pushq %rax # target address in negative space
lretq

#ifdef CONFIG_HOTPLUG_CPU
/*
* Boot CPU0 entry point. It's called from play_dead(). Everything has been set
* up already except stack. We just set up stack here. Then call
* start_secondary().
*/
ENTRY(start_cpu0)
movq stack_start(%rip),%rsp
movq initial_code(%rip),%rax
pushq $0 # fake return address to stop unwinder
pushq $__KERNEL_CS # set correct cs
pushq %rax # target address in negative space
lretq
ENDPROC(start_cpu0)
#endif

/* SMP bootup changes these two */
__REFDATA
.align 8
Expand Down

0 comments on commit 7db12a6

Please sign in to comment.