diff options
-rw-r--r-- | src/soc/amd/cezanne/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/cpu.c b/src/soc/amd/cezanne/cpu.c index 148dcd8b31..f00266552d 100644 --- a/src/soc/amd/cezanne/cpu.c +++ b/src/soc/amd/cezanne/cpu.c @@ -3,6 +3,7 @@ #include <amdblocks/cpu.h> #include <amdblocks/reset.h> #include <amdblocks/smm.h> +#include <assert.h> #include <console/console.h> #include <cpu/amd/microcode.h> #include <cpu/cpu.h> @@ -14,6 +15,9 @@ #include <soc/cpu.h> #include <soc/iomap.h> +_Static_assert(CONFIG_MAX_CPUS == 16, "Do not override MAX_CPUS. To reduce the number of " + "available cores, use the downcore_mode and disable_smt devicetree settings instead."); + /* MP and SMM loading initialization */ /* |