coreboot-kgpe-d16/payloads/libpayload/arch/x86
Raul E Rangel 24ae85c3ff libpayload/x86/apic: Add an apic_delay method and calibrate the timer
The apic_delay method will halt the CPU and wait for a timer interrupt
to fire. I went with usec because nsec is too granular to guarantee.

This method will be called from an arch_ndelay() method when the delay
is large enough to justify a sleep.

BUG=b:109749762
TEST=Tested it on grunt by changing the _delay method to call
apic_delay().

Change-Id: I80363f06bdb22d0907f895885e607fde1c4c468d
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/28242
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-12 14:15:11 +00:00
..
apic.c libpayload/x86/apic: Add an apic_delay method and calibrate the timer 2018-09-12 14:15:11 +00:00
coreboot.c libpayload: move MRC processing to x86 path and remove ACPI_GNVS duplication 2015-03-20 15:33:47 +01:00
exception.c libpayload/arch/x86: Add support for initializing the APIC 2018-09-12 14:14:46 +00:00
exception_asm.S libpayload/x86/exception: Add ability to handle user defined interrupts 2018-09-10 15:01:04 +00:00
exec.S Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
gdb.c libpayload/x86/gdb: Migrate to use set_interrupt_handler 2018-09-10 15:01:19 +00:00
head.S Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
Kconfig libpayload/arch/x86: Add support for initializing the APIC 2018-09-12 14:14:46 +00:00
libpayload.ldscript libpayload: Move base address, stack and heap size to Kconfig 2016-03-15 20:53:38 +01:00
main.c libpayload/arch/x86: Add support for initializing the APIC 2018-09-12 14:14:46 +00:00
Makefile.inc libpayload/arch/x86: Add support for initializing the APIC 2018-09-12 14:14:46 +00:00
multiboot.c libpayload: multiboot - support meminfo flag 2017-02-17 18:20:38 +01:00
rom_media.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
selfboot.c libpayload: Introduce new Kconfig to explicitly allow GPL code 2015-01-09 07:06:27 +01:00
string.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sysinfo.c libpayload: honor TSC information under CONFIG_LP_TIMER_RDTSC 2016-02-19 19:50:25 +01:00
timer.c libpayload: timer: Move the timer drivers from depthcharge to libpayload. 2014-11-13 06:23:07 +01:00
util.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
virtual.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00