Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167445
b: refs/heads/master
c: 7a4b7e5
h: refs/heads/master
i:
  167443: 266e3ef
v: v3
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Oct 12, 2009
1 parent 25a4195 commit 6100d2c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 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: d0153ca35d344d9b640dc305031b0703ba3f30f0
refs/heads/master: 7a4b7e5e741fe0a72a517b0367a2659aa53f7c44
12 changes: 10 additions & 2 deletions trunk/arch/x86/kernel/trampoline.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
#include <asm/trampoline.h>
#include <asm/e820.h>

#if defined(CONFIG_X86_64) && defined(CONFIG_ACPI_SLEEP)
#define __trampinit
#define __trampinitdata
#else
#define __trampinit __cpuinit
#define __trampinitdata __cpuinitdata
#endif

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

void __init reserve_trampoline_memory(void)
{
Expand All @@ -26,7 +34,7 @@ void __init reserve_trampoline_memory(void)
* bootstrap into the page concerned. The caller
* has made sure it's suitably aligned.
*/
unsigned long __cpuinit setup_trampoline(void)
unsigned long __trampinit setup_trampoline(void)
{
memcpy(trampoline_base, trampoline_data, TRAMPOLINE_SIZE);
return virt_to_phys(trampoline_base);
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/trampoline_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@
#include <asm/segment.h>
#include <asm/processor-flags.h>

#ifdef CONFIG_ACPI_SLEEP
.section .rodata, "a", @progbits
#else
/* We can free up the trampoline after bootup if cpu hotplug is not supported. */
__CPUINITRODATA
#endif
.code16

ENTRY(trampoline_data)
Expand Down

0 comments on commit 6100d2c

Please sign in to comment.