u-boot/arch/x86/cpu
Tom Rini 9565771076 Merge patch series "bootm: Refactoring to reduce reliance on CMDLINE (part A)"
To quote the author:

It would be useful to be able to boot an OS when CONFIG_CMDLINE is
disabled. This could allow reduced code size.

Standard boot provides a way to handle programmatic boot, without
scripts, so such a feature is possible. The main impediment is the
inability to use the booting features of U-Boot without a command line.
So the solution is to avoid passing command arguments and the like to
code in boot/

A similar process has taken place with filesystems, for example, where
we have (somewhat) separate Kconfig options for the filesystem commands
and the filesystems themselves.

This series starts the process of refactoring the bootm logic so that
it can be called from standard boot without using the command line.
Mostly it removes the use of argc, argv and cmdtbl from the internal
logic.

Some limited tidy-up is included, but this is kept to smaller patches,
rather than trying to remove all #ifdefs etc. Some function comments
are added, however.

A simple programmatic boot is provided as a starting point.

This work will likely take many series, so this is just the start.

Size growth with this series for firefly-rk3288 (Thumb2) is:

       arm: (for 1/1 boards) all +23.0 rodata -49.0 text +72.0

This should be removed by:

   https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/11

but it is not included in this series as it is already large enough.

No functional change is intended in this series.

Changes in v3:
- Add a panic if programmatic boot fails
- Drop RFC tag

Changes in v2:
- Add new patch to adjust position of unmap_sysmem() in boot_get_kernel()
- Add new patch to obtain command arguments
- Fix 'boot_find_os' typo
- Pass in the command name
- Use the command table to provide the command name, instead of "bootm"
2023-12-13 11:51:53 -05:00
..
apollolake x86: Prevent from missing the FADT chaining 2023-09-22 06:03:46 +08:00
baytrail x86: Prevent from missing the FADT chaining 2023-09-22 06:03:46 +08:00
braswell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadwell x86: broadwell: Avoid initing the CPU twice 2023-09-22 06:03:46 +08:00
coreboot x86: coreboot: Add a sysinfo driver 2023-11-28 12:53:04 -05:00
efi event: Use an event to replace last_stage_init() 2023-08-31 13:16:55 -04:00
i386 x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI) 2023-09-22 06:03:46 +08:00
intel_common x86: broadwell: Show the memory delay 2023-09-22 06:03:46 +08:00
ivybridge event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
qemu common: return type board_get_usable_ram_top 2023-08-15 18:21:17 +02:00
quark x86: Prevent from missing the FADT chaining 2023-09-22 06:03:46 +08:00
queensbay x86: queensbay: Return directly if IGD / SDVO were already disabled 2021-08-03 00:03:14 +08:00
slimbootloader common: return type board_get_usable_ram_top 2023-08-15 18:21:17 +02:00
tangier common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
x86_64 x86: Set the CPU vendor in SPL 2023-09-22 06:03:46 +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 x86: efi: Don't use the 64-bit link script for the EFI app 2022-01-15 10:57:22 +01:00
cpu.c event: Use an event to replace last_stage_init() 2023-08-31 13:16:55 -04: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 dm: dts: Convert driver model tags to use new schema 2023-02-14 09:43:26 -07:00
mtrr.c x86: Return mtrr_add_request() to its old purpose 2023-08-01 10:06:46 +08:00
pci.c x86: pci: Use PCI_CONF1_ADDRESS() macro 2022-01-12 14:21:24 -05:00
qfw_cpu.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04: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 Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
start16.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start64.S x86: Improve the trampoline in 64-bit mode 2023-07-17 17:12:07 +08:00
start_from_spl.S x86: coral: Allow init of debug UART in U-Boot proper 2021-03-27 15:04:30 +13: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 arm: x86: Drop discarding of command linker-lists 2023-12-13 11:51:24 -05:00
u-boot-spl.lds arm: x86: Drop discarding of command linker-lists 2023-12-13 11:51:24 -05:00
u-boot.lds arm: x86: Drop discarding of command linker-lists 2023-12-13 11:51:24 -05:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00