coreboot-kgpe-d16/src/lib
Julius Werner 5358467638 prog_loaders: Remove prog_locate()
This patch rewrites the last few users of prog_locate() to access CBFS
APIs directly and removes the call. This eliminates the double-meaning
of prog_rdev() (referring to both the boot medium where the program is
stored before loading, and the memory area where it is loaded after) and
makes sure that programs are always located and loaded in a single
operation. This makes CBFS verification easier to implement and secure
because it avoids leaking a raw rdev of unverified data outside the CBFS
core code.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I7a5525f66e1d5f3a632e8f6f0ed9e116e3cebfcf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49337
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2021-03-17 00:13:59 +00:00
..
gnat lib/gnat/i-c.ads: Add `uintptr_t` type 2020-11-16 12:13:31 +00:00
Kconfig src/lib: Add Kconfig option for SPD cache in FMAP 2020-12-14 08:23:41 +00:00
Kconfig.cbfs_verification src/lib/: Remove "this file is part of" line 2021-01-25 09:06:37 +00:00
Makefile.inc drivers/intel/fsp1_1,fsp2_0: Refactor logo display 2021-02-09 07:52:31 +00:00
asan.c lib/asan.c: Update SPDX license 2021-02-01 08:53:22 +00:00
b64_decode.c
bmp_logo.c drivers/intel/fsp1_1,fsp2_0: Refactor logo display 2021-02-09 07:52:31 +00:00
boot_device.c
bootblock.c
bootmem.c
bootmode.c
bootsplash.c cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
cb.ads
cbfs.c cbfs: Remove prog_locate() for stages and rmodules 2021-03-16 21:45:34 +00:00
cbmem_common.c
cbmem_console.c
cbmem_stage_cache.c
compute_ip_checksum.c
coreboot_table.c coreboot_table: Use precision when printing lb_gpio name 2021-02-10 07:27:38 +00:00
crc_byte.c
decompressor.c
delay.c
device_tree.c lib/device_tree.c: Remove repeated word 2021-01-18 07:38:49 +00:00
dimm_info_util.c
edid.c lib/edid: Add missing name descriptor presence flag 2020-10-26 13:28:41 +00:00
edid_fill_fb.c lib/edid_fill_fb: Relax bits_per_pixel constraint 2021-01-24 11:18:23 +00:00
espi_debug.c
ext_stage_cache.c
fallback_boot.c
fit.c
fit_payload.c cbfs: Remove prog_locate() for payloads (SELF and FIT) 2021-03-17 00:13:53 +00:00
fmap.c lib/fmap: Add null parameters handling 2020-12-11 19:15:25 +00:00
fw_config.c fw_config: Use UNDEFINED_FW_CONFIG to mean unprovisioned 2020-12-11 16:59:35 +00:00
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
gpio.c
halt.c
hardwaremain.c ACPI: Clean up GNVS initialisation 2021-01-24 19:57:17 +00:00
hexdump.c
hexstrtobin.c
hw-time-timer.adb
imd.c lib/imd: move struct definitions to a new header file 2020-10-19 06:55:03 +00:00
imd_cbmem.c
jpeg.c
jpeg.h
libgcc.c
libgcov.c
list.c
lzma.c
lzmadecode.c
lzmadecode.h
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
metadata_hash.c src: Remove unused <cbmem.h> 2021-02-03 08:56:35 +00:00
nhlt.c
primitive_memtest.c
prog_loaders.c prog_loaders: Remove prog_locate() 2021-03-17 00:13:59 +00:00
prog_ops.c
program.ld memlayout: Store region sizes as separate symbols 2021-02-19 08:39:26 +00:00
ramdetect.c
ramtest.c src: Remove useless comments in "includes" lines 2021-02-04 10:18:49 +00:00
reg_script.c lib/reg_script: Add cast to fix compilation on x86_64 2020-12-01 16:00:57 +00:00
region_file.c
reset.c
rmodule.c cbfs: Remove prog_locate() for stages and rmodules 2021-03-16 21:45:34 +00:00
rmodule.ld
romstage_handoff.c ACPI S3: Replace stashed acpi_slp_typ value 2021-01-23 20:19:47 +00:00
rtc.c
selfboot.c cbfs: Remove prog_locate() for payloads (SELF and FIT) 2021-03-17 00:13:53 +00:00
spd_bin.c lib: Add DDR5 DRAM type 2021-02-18 22:47:59 +00:00
spd_cache.c
stack.c
string.c
thread.c
timer.c
timer_queue.c
timestamp.c
ubsan.c
uuid.c
version.c
wrdd.c