coreboot/payloads/libpayload/arch/x86
Julius Werner 4ccb4a78c4 libpayload: Use Kconfig instead of weak symbol for arch_ndelay()
Weak symbols don't work as expected when you want to override them from
within the same static library. This patch changes the arch_ndelay()
function so that instead of having a weak generic implementation, the
choice between generic implementation and an arch-specific override is
explicitly made by Kconfig. Let's also drop the "arch_" prefix and just
call this ndelay().

Change-Id: Ie4fe2734e0683fa3537e2ebcabfe067e7499463a
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87776
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com>
2025-05-22 19:27:30 +00:00
..
apic.c libpayload: Use Kconfig instead of weak symbol for arch_ndelay() 2025-05-22 19:27:30 +00:00
boot_media.c commonlib/bsd, libpayload: Do not include helpers.h in stddef.h 2023-02-16 17:55:37 +00:00
cache.c x86/cache.c: Implement dcache_* 2022-09-01 14:21:11 +00:00
coreboot.c libpayload/arch/x86: Update API handling of CBTABLE handoff 2023-05-24 11:49:51 +00:00
delay.c libpayload: Use Kconfig instead of weak symbol for arch_ndelay() 2025-05-22 19:27:30 +00:00
exception.c libpayload/x86: Extend exception handling to x86_64 architecture 2024-06-20 19:51:18 +00:00
exception_asm.S libpayload/x86: Fix assembly for clang 2024-08-27 00:27:00 +00:00
exception_asm_64.S libpayload/x86: Fix assembly for clang 2024-08-27 00:27:00 +00:00
exec.c libpayload: Add x86_64 (64-bit) support 2024-05-26 01:26:31 +00:00
exec.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gdb.c libpayload: Add x86_64 (64-bit) support 2024-05-26 01:26:31 +00:00
head.S libpayload: Inject head.S into libc, remove separate class 2024-05-24 08:10:56 +00:00
head_64.S treewide: Rename PM4LE -> PML4E 2025-02-25 17:33:36 +00:00
Kconfig libpayload: Use Kconfig instead of weak symbol for arch_ndelay() 2025-05-22 19:27:30 +00:00
libpayload.ldscript libpayload: Fix x86 output arch 2024-08-27 00:27:55 +00:00
main.c libpayload: Save EAX and EBX only for multiboot payloads 2024-05-04 16:51:44 +00:00
Makefile.mk libpayload: Unify selfboot() implementations 2025-02-11 20:59:57 +00:00
multiboot.c libpayload: Save EAX and EBX only for multiboot payloads 2024-05-04 16:51:44 +00:00
multiboot_header.inc libpayload: x86: Move Multiboot header to include file 2024-05-24 08:10:51 +00:00
pt.S treewide: Rename PM4LE -> PML4E 2025-02-25 17:33:36 +00:00
string.c libpayload: Use Kconfig for architecture memcpy, not weak symbols 2025-05-22 19:27:24 +00:00
sysinfo.c libpayload/arch/x86: Introduce pacc pointer in sysinfo_t struct 2020-10-20 20:35:24 +00:00
timer.c libpayload/x86: Try to discover invariant TSC rate 2020-11-02 06:24:33 +00:00
util.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
virtual.c payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00