diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2020-08-09 20:21:28 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-11-09 10:19:28 +0000 |
commit | 7ac4722a35714bb02286a0ae0b47abaf1a35219d (patch) | |
tree | 1fcfed52b888c5844a01f74b81231624f5020ff9 /src/cpu | |
parent | a69d2c10a906d18c9ce531c139fe6c8e37820c89 (diff) |
cpu/x86/smm/smm.ld: Assert that CONFIG_MAX_CPUS <= 4
The SMM_ASEG code only supports up to 4 CPUs, so assert this at
buildtime.
Change-Id: I8ec803cd1b76f17f4dccd5c573179d542d54c277
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44322
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/x86/smm/smm.ld | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/x86/smm/smm.ld b/src/cpu/x86/smm/smm.ld index af5968d9d5..e232028e4b 100644 --- a/src/cpu/x86/smm/smm.ld +++ b/src/cpu/x86/smm/smm.ld @@ -2,6 +2,9 @@ /* Maximum number of CPUs/cores */ CPUS = 4; + +_ = ASSERT(CPUS >= CONFIG_MAX_CPUS, "The ASEG SMM code only supports up to 4 CPUS"); + ENTRY(smm_handler_start); SECTIONS |