mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:12:59 +00:00
[NTOS:KE][HALX86] Implement AP startup code (#5879)
Co-authored-by: Victor Perevertkin <victor.perevertkin@reactos.org> Introduce the initial changes needed to get other processors up and into kernel mode. This only supports x86 as of now but is the first real step towards using other system processors.
This commit is contained in:
parent
9e42809fc1
commit
516ccad340
30 changed files with 799 additions and 135 deletions
|
@ -2,8 +2,22 @@
|
|||
list(APPEND HAL_SMP_SOURCE
|
||||
generic/buildtype.c
|
||||
generic/spinlock.c
|
||||
smp/ipi.c
|
||||
smp/smp.c)
|
||||
|
||||
add_library(lib_hal_smp OBJECT ${HAL_SMP_SOURCE})
|
||||
add_dependencies(lib_hal_smp bugcodes xdk)
|
||||
if(ARCH STREQUAL "i386")
|
||||
list(APPEND HAL_SMP_ASM_SOURCE
|
||||
smp/i386/apentry.S)
|
||||
list(APPEND HAL_SMP_SOURCE
|
||||
smp/i386/spinup.c)
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
list(APPEND HAL_SMP_ASM_SOURCE
|
||||
smp/amd64/apentry.S)
|
||||
list(APPEND HAL_SMP_SOURCE
|
||||
smp/amd64/spinup.c)
|
||||
endif()
|
||||
|
||||
add_asm_files(lib_hal_smp_asm ${HAL_SMP_ASM_SOURCE})
|
||||
add_library(lib_hal_smp OBJECT ${HAL_SMP_SOURCE} ${lib_hal_smp_asm})
|
||||
add_dependencies(lib_hal_smp bugcodes asm xdk)
|
||||
target_compile_definitions(lib_hal_smp PRIVATE CONFIG_SMP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue