u-boot/arch/x86/include/asm
Simon Glass add3f4c918 x86: Add a function to set variable MTRRs
Normally U-Boot handles MTRRs through an add/commit process which
overwrites all MTRRs. But in very early boot it is not desirable to clear
the existing MTRRs since they may be in use and it can cause a hang.

Add a new mtrr_set_next_var() function which sets up the next available
MTRR to the required region.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: pass 'type' to set_var_mtrr() in mtrr_set_next_var()]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2019-10-08 13:57:48 +08:00
..
acpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-baytrail x86: acpi: Remove redundant Offset (0x00) 2018-11-06 13:35:06 +08:00
arch-braswell SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-broadwell x86: Use a common bus clock for Intel CPUs 2019-10-08 13:57:47 +08:00
arch-coreboot SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-ivybridge x86: Add common functions for TDP and perf control 2019-10-08 13:57:47 +08:00
arch-qemu x86: qemu: Support getting high memory size 2019-09-10 14:19:39 +08:00
arch-quark x86: acpi: Remove redundant Offset (0x00) 2018-11-06 13:35:06 +08:00
arch-queensbay SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-slimbootloader x86: slimbootloader: Set TSC information for tsc_timer 2019-08-09 22:24:02 +08:00
arch-tangier x86: tangier: Use spaces over TABs in ASL code 2019-09-10 16:19:03 +08:00
fsp x86: fsp: Add access to variable MRC data 2019-10-08 13:57:31 +08:00
fsp1 x86: Move common fsp functions into a common file 2019-10-08 13:54:01 +08:00
video
acpi.h x86: acpi: Move APIs unrelated to ACPI tables generation to a separate library 2018-07-20 09:33:22 +08:00
acpi_table.h x86: acpi: Annotate struct acpi_table_header with __packed 2019-09-10 16:17:55 +08:00
atomic.h x86: Add atomic operations 2015-04-29 21:02:33 -06:00
bitops.h x86: Define PLATFORM__SET_BIT for generic_set_bit() 2018-05-15 21:44:05 -04:00
bootm.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootparam.h x86: zImage: Propagate acpi_rsdp_addr to kernel via boot parameters 2019-10-01 18:20:47 +08:00
byteorder.h x86: Fix up byteorder.h for x86_64 2017-02-06 11:38:46 +08:00
cache.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cmos_layout.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
control_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
coreboot_tables.h x86: Add a forward struct declaration in coreboot_tables.h 2019-07-10 16:52:58 -06:00
cpu.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu_common.h x86: Add new common CPU functions for turbo/burst mode 2019-10-08 13:57:47 +08:00
cpu_x86.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dma-mapping.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
e820.h x86: Rename e820entry to e820_entry 2018-04-16 16:54:51 +08:00
early_cmos.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsp_arch.h x86: Move fsp_ffs.h include to fsp_arch.h 2019-10-08 13:50:55 +08:00
global_data.h x86: Remove x86 specific GD flags as they are not referenced at all 2019-08-18 21:54:10 +08:00
gpio.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
handoff.h x86: fsp: Save usable RAM and hob_list in the handoff area 2019-10-08 13:57:36 +08:00
hob.h x86: fsp: Tidy up comment style a little 2019-10-08 13:53:54 +08:00
i8254.h sound: x86: Add beeping support in i8254 2019-02-20 15:27:09 +08:00
i8259.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ibmpc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
interrupt.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
io.h x86: Adjust I/O macros to work on 64-bit machines 2019-02-20 15:25:29 +08:00
ioapic.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ioctl.h
irq.h x86: irq: Support discrete PIRQ routing registers via device tree 2018-06-13 09:50:57 +08:00
ist.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lapic.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
linkage.h x86: move arch-specific asmlinkage to <asm/linkage.h> 2014-12-15 07:22:53 -07:00
lpc_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
me_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
microcode.h x86: Use microcode update from device tree for all processors 2018-07-02 09:23:28 +08:00
mp.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpspec.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mrc_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mrccache.h x86: Support saving MRC data from SPL 2019-05-08 13:02:14 +08:00
msr-index.h x86: Tidy up some duplicate MSR defines 2019-10-08 13:57:47 +08:00
msr.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtrr.h x86: Add a function to set variable MTRRs 2019-10-08 13:57:48 +08:00
pch_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci.h x86: pci: Drop the first parameter in pci_x86_r/w_config() 2019-10-08 13:57:46 +08:00
pirq_routing.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pnp_def.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h x86: Change __kernel_size_t conditionals to use compiler provided defines 2018-06-24 08:56:04 +08:00
post.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor-flags.h
processor.h x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
ptrace.h x86: Display correct CS/EIP/EFLAGS when there is an error code 2015-07-28 10:36:21 -06:00
report_platform.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
scu.h x86: cpu: introduce scu_ipc_raw_command() 2018-09-17 14:34:15 +08:00
sections.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
setjmp.h x86: Add 64-bit setjmp/longjmp implementation 2018-06-24 08:56:04 +08:00
sfi.h SPDX: Convert all of our multiple license tags to Linux Kernel style 2018-05-07 10:24:31 -04:00
sipi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
speedstep.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.h x86: spl: Reduce priority of the basic SPL image loader 2019-10-08 13:57:35 +08:00
string.h x86: do not use i386 code for x86_64 memory functions 2019-02-13 09:40:06 +01:00
tables.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
turbo.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
types.h arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
u-boot-x86.h x86: Rename existing FSP code to fsp1 2019-10-08 13:50:08 +08:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h
zimage.h x86: zimage: Support booting Linux kernel from an EFI payload 2018-08-30 11:23:14 +08:00