aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2013-01-25 16:03:35 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2013-01-25 16:05:40 -0800
commit3596f5bb0a6afd01a784bfe120f420edbbf82861 (patch)
treeea90ecfb238c7526c2e012dabe48a455f5eea5d7 /arch/x86/kernel
parentx86/lguest: Use __pa_symbol instead of __pa on C visible symbols (diff)
parentx86/mm: Don't flush the TLB on #WP pmd fixups (diff)
downloadlinux-3596f5bb0a6afd01a784bfe120f420edbbf82861.tar.gz
linux-3596f5bb0a6afd01a784bfe120f420edbbf82861.zip
Merge branch 'x86/mm' of ssh://ra.kernel.org/pub/scm/linux/kernel/git/tip/tip into x86/mm
Add missing patch from the __pa_symbol conversion series by Alexander Duyck. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/head32.c2
-rw-r--r--arch/x86/kernel/head64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c
index f15db0c40713..e17554832991 100644
--- a/arch/x86/kernel/head32.c
+++ b/arch/x86/kernel/head32.c
@@ -31,7 +31,7 @@ static void __init i386_default_early_setup(void)
void __init i386_start_kernel(void)
{
memblock_reserve(__pa_symbol(_text),
- (phys_addr_t)__bss_stop - (phys_addr_t)_text);
+ (unsigned long)__bss_stop - (unsigned long)_text);
#ifdef CONFIG_BLK_DEV_INITRD
/* Reserve INITRD */
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index 42f5df134341..7b215a50ec1e 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -98,7 +98,7 @@ void __init x86_64_start_reservations(char *real_mode_data)
copy_bootdata(__va(real_mode_data));
memblock_reserve(__pa_symbol(_text),
- (phys_addr_t)__bss_stop - (phys_addr_t)_text);
+ (unsigned long)__bss_stop - (unsigned long)_text);
#ifdef CONFIG_BLK_DEV_INITRD
/* Reserve INITRD */