u-boot/arch/x86/cpu
Bin Meng 9a7c6fde07 x86: mtrr: Abort if requested size is not power of 2
The size parameter of mtrr_add_request() and mtrr_set_next_var()
shall be power of 2, otherwise the logic creates a mask that does
not meet the requirement of IA32_MTRR_PHYSMASK register.

Programming such a mask value to IA32_MTRR_PHYSMASK generates #GP.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested on chromebook_coral, chromebook_samus, chromebook_link, minnowmax
Tested-by: Simon Glass <sjg@chromium.org>
2021-08-02 15:11:41 +08:00
..
apollolake x86: coral: Allow init of debug UART in U-Boot proper 2021-03-27 15:04:30 +13:00
baytrail common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
braswell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadwell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
coreboot x86: coreboot: Use vendor in the Kconfig 2021-07-15 19:50:21 +08:00
efi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
i386 x86: Don't set up MTRRs if previously done 2021-07-15 19:50:00 +08:00
intel_common x86: itss: Tidy up bind() for of-platdata-inst 2021-03-26 17:03:09 +13:00
ivybridge reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
qemu x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
quark x86: tsc: Rename X86_TSC_TIMER_EARLY_FREQ to X86_TSC_TIMER_FREQ 2021-08-02 15:11:40 +08:00
queensbay common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
slimbootloader common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tangier x86: tangier: Fix DMA controller IRQ polarity in CSRT 2021-08-02 15:11:40 +08:00
x86_64 x86: cpu: Report address width from cpu_get_info() 2020-09-25 11:27:21 +08:00
acpi_gpe.c x86: acpi_gpe: Update driver name to match devicetree 2021-02-01 15:11:41 +08:00
call32.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
config.mk Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
cpu.c bootstage: Eliminate when not enabled 2021-07-07 10:17:54 -04:00
cpu_x86.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ioapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
irq.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile x86: Don't enable SMP in SPL 2020-07-20 09:46:46 +08:00
mp_init.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mtrr.c x86: mtrr: Abort if requested size is not power of 2 2021-08-02 15:11:41 +08:00
pci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
qfw_cpu.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
resetvec.S x86: Reduce resetvec size 2019-10-11 17:37:38 +08:00
sipi_vector.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start16.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start64.S x86: start64: Fix copyright message 2019-05-08 13:02:10 +08:00
start_from_spl.S x86: coral: Allow init of debug UART in U-Boot proper 2021-03-27 15:04:30 +13:00
start_from_tpl.S x86: Add more comments to the start-up code 2019-10-08 13:57:36 +08:00
turbo.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
u-boot-64.lds x86: Discard .note.gnu.property sections 2021-06-23 17:21:14 +08:00
u-boot-spl.lds x86: Discard .note.gnu.property sections 2021-06-23 17:21:14 +08:00
u-boot.lds x86: Discard .note.gnu.property sections 2021-06-23 17:21:14 +08:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00