Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164304
b: refs/heads/master
c: 5f68563
h: refs/heads/master
v: v3
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Sep 20, 2009
1 parent 42790c9 commit 3675f14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 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: 414128bd33fef3242747154dfa444970bc5caf4c
refs/heads/master: 5f68563996e812f9ca35b3939ad2a42e5d254d66
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/trampoline.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <asm/e820.h>

/* ready for x86_64 and x86 */
unsigned char *trampoline_base = __va(TRAMPOLINE_BASE);
unsigned char *__cpuinitdata trampoline_base = __va(TRAMPOLINE_BASE);

void __init reserve_trampoline_memory(void)
{
Expand All @@ -26,7 +26,7 @@ void __init reserve_trampoline_memory(void)
* bootstrap into the page concerned. The caller
* has made sure it's suitably aligned.
*/
unsigned long setup_trampoline(void)
unsigned long __cpuinit setup_trampoline(void)
{
memcpy(trampoline_base, trampoline_data, TRAMPOLINE_SIZE);
return virt_to_phys(trampoline_base);
Expand Down
8 changes: 2 additions & 6 deletions trunk/arch/x86/kernel/trampoline_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@
*/

#include <linux/linkage.h>
#include <linux/init.h>
#include <asm/segment.h>
#include <asm/page_types.h>

/* We can free up trampoline after bootup if cpu hotplug is not supported. */
#ifndef CONFIG_HOTPLUG_CPU
.section ".cpuinit.data","aw",@progbits
#else
.section .rodata,"a",@progbits
#endif

__CPUINITRODATA
.code16

ENTRY(trampoline_data)
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/trampoline_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
*/

#include <linux/linkage.h>
#include <linux/init.h>
#include <asm/pgtable_types.h>
#include <asm/page_types.h>
#include <asm/msr.h>
#include <asm/segment.h>
#include <asm/processor-flags.h>

.section .rodata, "a", @progbits

/* We can free up the trampoline after bootup if cpu hotplug is not supported. */
__CPUINITRODATA
.code16

ENTRY(trampoline_data)
Expand Down

0 comments on commit 3675f14

Please sign in to comment.