lib/program_loaders.c: Mark run_ramstage with __noreturn
This allows the compiler to optimize out code called after run_ramstage. Also remove some die() statements in soc code as run_ramstage already has a die_with_postcode statement. Change-Id: Id8b841712661d3257b0dc67b509f97bdc31fcf6f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65811 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Felix Held
parent
b95a821576
commit
84b2f9f5b8
@@ -82,7 +82,7 @@ void preload_ramstage(void)
|
||||
|
||||
cbfs_preload(CONFIG_CBFS_PREFIX "/ramstage");
|
||||
}
|
||||
void run_ramstage(void)
|
||||
void __noreturn run_ramstage(void)
|
||||
{
|
||||
struct prog ramstage =
|
||||
PROG_INIT(PROG_RAMSTAGE, CONFIG_CBFS_PREFIX "/ramstage");
|
||||
|
Reference in New Issue
Block a user