diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-04-22 00:40:38 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-04-22 02:01:36 -0400 |
commit | 93a2cdff98243df06bafd3c4f3b31b38f0d0fe3e (patch) | |
tree | cfda9a918a92ac0308e1c888489c83c0b243138a /arch/x86/include/asm | |
parent | 856c608827928d29f80605e85fc3f8f0ab3af4fb (diff) |
lguest: assume Switcher text is a single page.
ie. SHARED_SWITCHER_PAGES == 1. It is well under a page, and it's a
minor simplification: it's nice to have *one* simplification in a
patch series!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/lguest.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/include/asm/lguest.h b/arch/x86/include/asm/lguest.h index 85ecdb80d121..74edebd010ab 100644 --- a/arch/x86/include/asm/lguest.h +++ b/arch/x86/include/asm/lguest.h | |||
@@ -11,11 +11,8 @@ | |||
11 | 11 | ||
12 | #define GUEST_PL 1 | 12 | #define GUEST_PL 1 |
13 | 13 | ||
14 | /* Every guest maps the core switcher code. */ | 14 | /* Page for Switcher text itself, then two pages per cpu */ |
15 | #define SHARED_SWITCHER_PAGES \ | 15 | #define TOTAL_SWITCHER_PAGES (1 + 2 * nr_cpu_ids) |
16 | DIV_ROUND_UP(end_switcher_text - start_switcher_text, PAGE_SIZE) | ||
17 | /* Pages for switcher itself, then two pages per cpu */ | ||
18 | #define TOTAL_SWITCHER_PAGES (SHARED_SWITCHER_PAGES + 2 * nr_cpu_ids) | ||
19 | 16 | ||
20 | /* We map at -4M (-2M for PAE) for ease of mapping (one PTE page). */ | 17 | /* We map at -4M (-2M for PAE) for ease of mapping (one PTE page). */ |
21 | #ifdef CONFIG_X86_PAE | 18 | #ifdef CONFIG_X86_PAE |