This patch makes several CMOS/NVRAM reads dependent on whether there's a table to read. Otherwise you never know what you'll get from the factory BIOS. There are probably more, but these are the ones compiled into the s2895.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3959 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -56,9 +56,10 @@ static inline void start_other_cores(void)
|
||||
unsigned nodes;
|
||||
unsigned nodeid;
|
||||
|
||||
if(read_option(CMOS_VSTART_dual_core, CMOS_VLEN_dual_core, 0) != 0) { // disable dual_core
|
||||
return;
|
||||
}
|
||||
if (HAVE_OPTION_TABLE &&
|
||||
read_option(CMOS_VSTART_dual_core, CMOS_VLEN_dual_core, 0) != 0) {
|
||||
return; // disable dual_core
|
||||
}
|
||||
|
||||
nodes = get_nodes();
|
||||
|
||||
|
@ -72,7 +72,7 @@ static void for_each_ap(unsigned bsp_apicid, unsigned core_range, process_ap_t p
|
||||
nodes = get_nodes();
|
||||
|
||||
disable_siblings = !CONFIG_LOGICAL_CPUS;
|
||||
#if CONFIG_LOGICAL_CPUS == 1
|
||||
#if CONFIG_LOGICAL_CPUS == 1 && HAVE_OPTION_TABLE == 1
|
||||
if(read_option(CMOS_VSTART_dual_core, CMOS_VLEN_dual_core, 0) != 0) { // 0 mean dual core
|
||||
disable_siblings = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user