Commit a1ed4ddf authored by Andi Kleen's avatar Andi Kleen Committed by H. Peter Anvin

x86, asmlinkage: Make _*_start_kernel visible

Obviously these functions have to be visible, otherwise
the whole kernel could be optimized away.
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1375740170-7446-5-git-send-email-andi@firstfloor.orgSigned-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 1d9090e2
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#define COMMAND_LINE_SIZE 2048 #define COMMAND_LINE_SIZE 2048
#include <linux/linkage.h>
#ifdef __i386__ #ifdef __i386__
#include <linux/pfn.h> #include <linux/pfn.h>
...@@ -108,11 +110,11 @@ void *extend_brk(size_t size, size_t align); ...@@ -108,11 +110,11 @@ void *extend_brk(size_t size, size_t align);
extern void probe_roms(void); extern void probe_roms(void);
#ifdef __i386__ #ifdef __i386__
void __init i386_start_kernel(void); asmlinkage void __init i386_start_kernel(void);
#else #else
void __init x86_64_start_kernel(char *real_mode); asmlinkage void __init x86_64_start_kernel(char *real_mode);
void __init x86_64_start_reservations(char *real_mode_data); asmlinkage void __init x86_64_start_reservations(char *real_mode_data);
#endif /* __i386__ */ #endif /* __i386__ */
#endif /* _SETUP */ #endif /* _SETUP */
......
...@@ -29,7 +29,7 @@ static void __init i386_default_early_setup(void) ...@@ -29,7 +29,7 @@ static void __init i386_default_early_setup(void)
reserve_ebda_region(); reserve_ebda_region();
} }
void __init i386_start_kernel(void) asmlinkage void __init i386_start_kernel(void)
{ {
sanitize_boot_params(&boot_params); sanitize_boot_params(&boot_params);
......
...@@ -137,7 +137,7 @@ static void __init copy_bootdata(char *real_mode_data) ...@@ -137,7 +137,7 @@ static void __init copy_bootdata(char *real_mode_data)
} }
} }
void __init x86_64_start_kernel(char * real_mode_data) asmlinkage void __init x86_64_start_kernel(char * real_mode_data)
{ {
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment