coreboot/src/include/console
Julius Werner 266041f0e6 console: Add compile-time fast path when only CBMEM console is used
A common use case when running coreboot on production systems is that
only the CBMEM console (the one with the least impact on boot speed) is
enabled. In this case, some of the code in the console subsystem has no
effect. Due to the way it's all genericized over multiple consoles and
tied together with function pointers, not all of this can be
compile-time eliminated automatically, so this patch adds a little
helper to facilitate that. This results in roughly 200 (compressed)
bytes of savings per stage on an arm64 system.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I1d5b8bda80d02a13ee0b7835e0805c4319fd21d8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61613
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2022-02-07 23:28:46 +00:00
..
cbmem_console.h lib/cbmem_console: Add cbmemc_copy_in function 2022-01-23 16:42:38 +00:00
console.h console: Add compile-time fast path when only CBMEM console is used 2022-02-07 23:28:46 +00:00
debug.h soc/intel/xeon_sp: Move function debug macros 2020-10-29 16:44:19 +00:00
flash.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
ne2k.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
qemu_debugcon.h console/qemu_debugcon: Support additional stages 2019-03-23 07:05:28 +00:00
spi.h src: Rename EM100Pro-specific SPI console Kconfig option 2020-10-13 08:40:52 +00:00
spkmodem.h coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
streams.h console: Add loglevel prefix to interactive consoles 2022-02-07 14:11:44 +00:00
system76_ec.h ec/system76: Add console support 2020-09-07 21:46:34 +00:00
uart.h console: Override uart base address 2020-11-09 07:46:10 +00:00
usb.h include/console/usb.h: Drop dead code 2020-07-09 23:51:09 +00:00
vtxprintf.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00