u-boot/arch/x86/cpu
Harald Seiler 35b65dd8ef reset: Remove addr parameter from reset_cpu()
Historically, the reset_cpu() function had an `addr` parameter which was
meant to pass in an address of the reset vector location, where the CPU
should reset to.  This feature is no longer used anywhere in U-Boot as
all reset_cpu() implementations now ignore the passed value.  Generic
code has been added which always calls reset_cpu() with `0` which means
this feature can no longer be used easily anyway.

Over time, many implementations seem to have "misunderstood" the
existence of this parameter as a way to customize/parameterize the reset
(e.g.  COLD vs WARM resets).  As this is not properly supported, the
code will almost always not do what it is intended to (because all
call-sites just call reset_cpu() with 0).

To avoid confusion and to clean up the codebase from unused left-overs
of the past, remove the `addr` parameter entirely.  Code which intends
to support different kinds of resets should be rewritten as a sysreset
driver instead.

This transformation was done with the following coccinelle patch:

    @@
    expression argvalue;
    @@
    - reset_cpu(argvalue)
    + reset_cpu()

    @@
    identifier argname;
    type argtype;
    @@
    - reset_cpu(argtype argname)
    + reset_cpu(void)
    { ... }

Signed-off-by: Harald Seiler <hws@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-03-02 14:03:02 -05:00
..
apollolake common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05: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 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
i386 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
intel_common common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ivybridge reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
qemu common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
quark common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05: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 Prepare v2021.01-rc5 2021-01-05 16:20:26 -05: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 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05: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 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
qfw_cpu.c x86: qemu: Fix broken multi-core boot 2021-02-03 22:54:56 +08: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: Use the existing stack when chain-loading 2020-04-30 17:48:17 +08: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: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
u-boot-spl.lds x86: spl: Make moving BSS conditional 2021-02-01 15:33:24 +08:00
u-boot.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00