diff options
author | Keir Fraser <keir@xen.org> | 2010-12-24 10:10:45 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-12-24 10:10:45 +0000 |
commit | 5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a (patch) | |
tree | 2537340f7328351fb2f462d325a89c42befffc3d /xen/arch/x86/e820.c | |
parent | 53ecc28f0e91051cf7874012ea13a6899910b105 (diff) | |
download | xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.tar.gz xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.tar.bz2 xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.zip |
Use bool_t for various boolean variables
... decreasing cache footprint. As a prerequisite this requires making
cmdline_parse() a little more flexible.
Also remove a few variables altogether, and adjust sections
annotations for several others.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/e820.c')
-rw-r--r-- | xen/arch/x86/e820.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index a9276cd17c..6a3903f4c3 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -25,11 +25,11 @@ static unsigned long long __initdata opt_availmem; size_param("availmem", opt_availmem); /* opt_nomtrr_check: Don't clip ram to highest cacheable MTRR. */ -static int __initdata e820_mtrr_clip = -1; +static s8 __initdata e820_mtrr_clip = -1; boolean_param("e820-mtrr-clip", e820_mtrr_clip); /* opt_e820_verbose: Be verbose about clipping, the original e820, &c */ -static int __initdata e820_verbose; +static bool_t __initdata e820_verbose; boolean_param("e820-verbose", e820_verbose); struct e820map e820; @@ -429,7 +429,7 @@ static void __init clip_to_limit(uint64_t limit, char *warnmsg) /* Conservative estimate of top-of-RAM by looking for MTRR WB regions. */ #define MSR_MTRRphysBase(reg) (0x200 + 2 * (reg)) #define MSR_MTRRphysMask(reg) (0x200 + 2 * (reg) + 1) -static uint64_t mtrr_top_of_ram(void) +static uint64_t __init mtrr_top_of_ram(void) { uint32_t eax, ebx, ecx, edx; uint64_t mtrr_cap, mtrr_def, addr_mask, base, mask, top; |