arch/x86: (Intel64) implement SMP support
Add duplicate per-CPU data structures (x86_cpuboot, tss, stacks, etc.) for up to 4 total CPUs, add code in locore and z_arch_start_cpu(). The test board, qemu_x86_long, now defaults to 2 CPUs. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
2808908816
commit
3eb1a8b59a
7 changed files with 239 additions and 7 deletions
|
@ -6,3 +6,4 @@ zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
|
|||
zephyr_cc_option(-march=goldmont)
|
||||
|
||||
zephyr_library_sources(soc.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_SMP cpu.c)
|
||||
|
|
8
soc/x86/apollo_lake/cpu.c
Normal file
8
soc/x86/apollo_lake/cpu.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Intel Corporation
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
|
||||
u8_t x86_cpu_loapics[] = { 0x00, 0x02, 0x04, 0x06 };
|
Loading…
Add table
Add a link
Reference in a new issue