coreboot-kgpe-d16/src/arch
Arthur Heymans ac24a96579 arch/x86/spinlock.h: Support systems with >128 cores
Each time the spinlock is acquired a byte is decreased and then the
sign of the byte is checked. If there are more than 128 cores the sign
check will overflow. An easy fix is to increase the word size of the
spinlock acquiring and releasing.

TEST: See that serialized SMM relocation is still serialized on
systems with >128 cores.

Change-Id: I76afaa60669335090743d99381280e74aa9fb5b1
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60539
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-01-15 14:48:46 +00:00
..
arm arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax 2021-11-25 10:42:17 +00:00
arm64 arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax 2021-11-25 10:42:17 +00:00
ppc64 arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax 2021-11-25 10:42:17 +00:00
riscv arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax 2021-11-25 10:42:17 +00:00
x86 arch/x86/spinlock.h: Support systems with >128 cores 2022-01-15 14:48:46 +00:00