memory/x86_64: fix linux safe_kernel_map
init_linux_kernel_mapping is called in setup_x86_phase1 way before arguments are setup, but we can access kernel boot args directly and use that, so ugly fix for now. Change-Id: I285ecc31c6646d6d18566d411b09ae3190e8101e Refs: #1228
This commit is contained in:
committed by
Masamichi Takagi
parent
bbc39480d2
commit
52cd57fed2
@@ -130,8 +130,6 @@ char *find_command_line(char *name)
|
||||
return strstr(cmdline, name);
|
||||
}
|
||||
|
||||
extern int safe_kernel_map;
|
||||
|
||||
static void parse_kargs(void)
|
||||
{
|
||||
char *ptr;
|
||||
@@ -152,11 +150,6 @@ static void parse_kargs(void)
|
||||
}
|
||||
ihk_mc_set_dump_level(dump_level);
|
||||
|
||||
ptr = find_command_line("safe_kernel_map");
|
||||
if (ptr) {
|
||||
safe_kernel_map = 1;
|
||||
}
|
||||
|
||||
/* idle_halt option */
|
||||
ptr = find_command_line("idle_halt");
|
||||
if (ptr) {
|
||||
|
||||
Reference in New Issue
Block a user