xref: /reactos/hal/halx86/smp.cmake (revision d1c118b3)
1400af0cfSTimo Kreuzer
2400af0cfSTimo Kreuzerlist(APPEND HAL_SMP_SOURCE
3*d1c118b3STimo Kreuzer    apic/apicsmp.c
4400af0cfSTimo Kreuzer    generic/buildtype.c
50fc21e5aSJustin Miller    generic/spinlock.c
6516ccad3SJustin Miller    smp/ipi.c
70fc21e5aSJustin Miller    smp/smp.c)
8400af0cfSTimo Kreuzer
9516ccad3SJustin Millerif(ARCH STREQUAL "i386")
10516ccad3SJustin Miller    list(APPEND HAL_SMP_ASM_SOURCE
11516ccad3SJustin Miller        smp/i386/apentry.S)
12516ccad3SJustin Miller    list(APPEND HAL_SMP_SOURCE
13516ccad3SJustin Miller        smp/i386/spinup.c)
14516ccad3SJustin Millerelseif(ARCH STREQUAL "amd64")
15516ccad3SJustin Miller    list(APPEND HAL_SMP_ASM_SOURCE
16516ccad3SJustin Miller        smp/amd64/apentry.S)
17516ccad3SJustin Miller    list(APPEND HAL_SMP_SOURCE
18516ccad3SJustin Miller        smp/amd64/spinup.c)
19516ccad3SJustin Millerendif()
20516ccad3SJustin Miller
21516ccad3SJustin Milleradd_asm_files(lib_hal_smp_asm ${HAL_SMP_ASM_SOURCE})
22516ccad3SJustin Milleradd_library(lib_hal_smp OBJECT ${HAL_SMP_SOURCE} ${lib_hal_smp_asm})
23516ccad3SJustin Milleradd_dependencies(lib_hal_smp bugcodes asm xdk)
24400af0cfSTimo Kreuzertarget_compile_definitions(lib_hal_smp PRIVATE CONFIG_SMP)
25