x86: add irq_cfg for 32bit
[deliverable/linux.git] / arch / x86 / kernel / trampoline.c
CommitLineData
77ad386e
IM
1#include <linux/io.h>
2
3#include <asm/trampoline.h>
4
a4c81cf6 5/* ready for x86_64 and x86 */
77ad386e
IM
6unsigned char *trampoline_base = __va(TRAMPOLINE_BASE);
7
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.
12 */
13unsigned long setup_trampoline(void)
14{
15 memcpy(trampoline_base, trampoline_data,
16 trampoline_end - trampoline_data);
17 return virt_to_phys(trampoline_base);
18}
This page took 0.062318 seconds and 5 git commands to generate.