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> |
||
|---|---|---|
| .. | ||
| apic.c | ||
| boot_media.c | ||
| cache.c | ||
| coreboot.c | ||
| delay.c | ||
| exception.c | ||
| exception_asm.S | ||
| exception_asm_64.S | ||
| exec.c | ||
| exec.S | ||
| gdb.c | ||
| head.S | ||
| head_64.S | ||
| Kconfig | ||
| libpayload.ldscript | ||
| main.c | ||
| Makefile.mk | ||
| multiboot.c | ||
| multiboot_header.inc | ||
| pt.S | ||
| string.c | ||
| sysinfo.c | ||
| timer.c | ||
| util.S | ||
| virtual.c | ||