diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2021-12-30 21:12:35 +0100 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2022-01-15 14:48:46 +0000 |
commit | ac24a96579d1b26978081b7cf29874474aabc525 (patch) | |
tree | 99cc791f715223308a128b4184f2fda07132f188 /src/mainboard/gigabyte | |
parent | 395f5b3129ad046a220aa4cf975279bfdebc19df (diff) |
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>
Diffstat (limited to 'src/mainboard/gigabyte')
0 files changed, 0 insertions, 0 deletions