From 35ce7d40f9861059caa460296d1663ff172de931 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 6 Aug 2022 11:35:44 -0400 Subject: [PATCH] powerpc/booke: Clamp MAXCPU to 32 for Book-E platforms Since the likelihood of new Book-E PowerPC SoCs being produced is near zero clamp MAXCPU to around the highest number of cores/threads available currently, for both 64-bit and 32-bit. Even though the current highest core/thread count is 24, the cap is set at 32 in case there is code that assumes power of 2. --- sys/powerpc/conf/MPC85XX | 1 + sys/powerpc/conf/QORIQ64 | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/powerpc/conf/MPC85XX b/sys/powerpc/conf/MPC85XX index ed0dd5f8e58..e1978ba3e83 100644 --- a/sys/powerpc/conf/MPC85XX +++ b/sys/powerpc/conf/MPC85XX @@ -15,6 +15,7 @@ makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 options FPU_EMU +options MAXCPU=32 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER diff --git a/sys/powerpc/conf/QORIQ64 b/sys/powerpc/conf/QORIQ64 index 5db473c5393..e1ef972d88e 100644 --- a/sys/powerpc/conf/QORIQ64 +++ b/sys/powerpc/conf/QORIQ64 @@ -17,6 +17,7 @@ makeoptions WITH_CTF=1 #makeoptions WERROR="-Werror -Wno-format" options FPU_EMU +options MAXCPU=32 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER