sungem: improve ethtool output with internal pcs and serdes
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / kernel / trampoline.c
blob1106fac6024d412fae02df4780464ecd2f9abf4b
1 #include <linux/io.h>
3 #include <asm/trampoline.h>
5 /* ready for x86_64 and x86 */
6 unsigned char *trampoline_base = __va(TRAMPOLINE_BASE);
8 /*
9 * Currently trivial. Write the real->protected mode
10 * bootstrap into the page concerned. The caller
11 * has made sure it's suitably aligned.
13 unsigned long setup_trampoline(void)
15 memcpy(trampoline_base, trampoline_data,
16 trampoline_end - trampoline_data);
17 return virt_to_phys(trampoline_base);