u-boot/arch/x86
Simon Glass 0f5ca1d1f1 x86: Update the MP constants to avoid conflicts
These constants conflict with error codes returned by the MP
implementation when something is wrong. In particular, mp_first_cpu()
returns MP_SELECT_BSP when running without multiprocessing enabled.
Since this is -2, it is interpreted as an error by callers, which
expect a positive CPU number for the first CPU.

Correct this by using a different range for the pre-defined CPU
numbers, above zero and out of the range of possible CPU values. For
now it is safe to assume there are no more than 64K CPUs.

This fixes the 'mtrr' command when CONFIG_SMP is not enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2021-07-15 19:50:04 +08:00
..
cpu x86: Don't set up MTRRs if previously done 2021-07-15 19:50:00 +08:00
dts x86: coral: Show memory config and SKU ID on startup 2021-03-27 16:26:48 +13:00
include/asm x86: Update the MP constants to avoid conflicts 2021-07-15 19:50:04 +08:00
lib x86: Drop _X86EMU_env definition when CONFIG_BIOSEMU is used 2021-07-07 10:17:54 -04:00
config.mk Add support for stack-protector 2021-04-20 07:31:12 -04:00
Kconfig x86: Move coreboot sysinfo parsing into generic x86 code 2021-03-27 13:59:59 +13:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00