Skip to content

Commit 7093412

Browse files
committed
[NTOS] Build mproc.c _only_ for MP ntoskrnl, not for single-processor
The usage of the BUILD_MP cmake variable was inadequate.
1 parent b0dd4ba commit 7093412

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ntoskrnl/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ add_pch(ntoskrnl ${REACTOS_SOURCE_DIR}/ntoskrnl/include/ntoskrnl.h "${PCH_SKIP_S
5252
add_dependencies(ntoskrnl psdk asm)
5353
add_cd_file(TARGET ntoskrnl DESTINATION reactos/system32 NO_CAB FOR all)
5454

55-
if(BUILD_MP)
56-
add_subdirectory(ntkrnlmp)
57-
endif()
55+
add_subdirectory(ntkrnlmp)
5856

5957
add_asm_files(ntdllsys_asm ntdll.S)
6058
add_library(ntdllsys ${ntdllsys_asm})

ntoskrnl/ntkrnlmp/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ endif()
1010

1111
add_asm_files(ntkrnlmp_asm ${NTKRNLMP_ASM_SOURCE})
1212

13+
if(ARCH STREQUAL "i386")
14+
list(APPEND NTKRNLMP_SOURCE
15+
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/mproc.c)
16+
elseif(ARCH STREQUAL "amd64")
17+
list(APPEND NTKRNLMP_SOURCE
18+
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/mproc.c)
19+
elseif(ARCH STREQUAL "arm")
20+
#TBD
21+
endif()
22+
1323
list(APPEND NTKRNLMP_PCH_SKIP_SOURCE
1424
${REACTOS_SOURCE_DIR}/ntoskrnl/guid.c)
1525

ntoskrnl/ntos.cmake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,6 @@ if(ARCH STREQUAL "i386")
334334
${REACTOS_SOURCE_DIR}/ntoskrnl/ps/i386/psldt.c
335335
${REACTOS_SOURCE_DIR}/ntoskrnl/vdm/vdmmain.c
336336
${REACTOS_SOURCE_DIR}/ntoskrnl/vdm/vdmexec.c)
337-
if(BUILD_MP)
338-
list(APPEND SOURCE
339-
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/mproc.c)
340-
endif()
341337
elseif(ARCH STREQUAL "amd64")
342338
list(APPEND ASM_SOURCE
343339
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/boot.S
@@ -366,10 +362,6 @@ elseif(ARCH STREQUAL "amd64")
366362
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/stubs.c
367363
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/traphandler.c
368364
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/usercall.c)
369-
if(BUILD_MP)
370-
list(APPEND SOURCE
371-
${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/mproc.c)
372-
endif()
373365
elseif(ARCH STREQUAL "arm")
374366
list(APPEND ASM_SOURCE
375367
${REACTOS_SOURCE_DIR}/ntoskrnl/ex/arm/ioport.s

0 commit comments

Comments
 (0)