diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-03-04 21:05:42 +0900 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2009-03-26 10:51:02 -0700 |
commit | e4ff5b8f545811008123dd9556a51d814f562fcf (patch) | |
tree | 2c308a3b1cc002f0d345ed64dd94a395678543bb /arch/ia64/mm | |
parent | 1aec1c558a797512e922581b21a178a05438bfc9 (diff) | |
download | kernel_samsung_tuna-e4ff5b8f545811008123dd9556a51d814f562fcf.zip kernel_samsung_tuna-e4ff5b8f545811008123dd9556a51d814f562fcf.tar.gz kernel_samsung_tuna-e4ff5b8f545811008123dd9556a51d814f562fcf.tar.bz2 |
ia64/pv_ops: gate page paravirtualization.
paravirtualize gate page by allowing each pv_ops instances
to define its own gate page.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/mm')
-rw-r--r-- | arch/ia64/mm/init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index c9bc5b3..8503d53 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c @@ -260,6 +260,7 @@ put_kernel_page (struct page *page, unsigned long address, pgprot_t pgprot) static void __init setup_gate (void) { + void *gate_section; struct page *page; /* @@ -267,10 +268,11 @@ setup_gate (void) * headers etc. and once execute-only page to enable * privilege-promotion via "epc": */ - page = virt_to_page(ia64_imva(__start_gate_section)); + gate_section = paravirt_get_gate_section(); + page = virt_to_page(ia64_imva(gate_section)); put_kernel_page(page, GATE_ADDR, PAGE_READONLY); #ifdef HAVE_BUGGY_SEGREL - page = virt_to_page(ia64_imva(__start_gate_section + PAGE_SIZE)); + page = virt_to_page(ia64_imva(gate_section + PAGE_SIZE)); put_kernel_page(page, GATE_ADDR + PAGE_SIZE, PAGE_GATE); #else put_kernel_page(page, GATE_ADDR + PERCPU_PAGE_SIZE, PAGE_GATE); |