summaryrefslogtreecommitdiff
path: root/src/arch/x86/postcar_loader.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-02-15 11:04:15 +0100
committerArthur Heymans <arthur@aheymans.xyz>2022-05-16 07:05:46 +0000
commitba00d10c41d1df1ca8a5eadc95a40430fbd059c5 (patch)
tree76b7c0d4896f3fd23baaa7f2cc8591a636b7e529 /src/arch/x86/postcar_loader.c
parent4e619b2c5c4732eb124b2909311abeb9e136cbd3 (diff)
arch/x86/postcar_loader.c: Reduce the scope of functions
Some functions are only called locally. Change-Id: I96a4e40a225536f62abb2a15c55d333b8604e8cc Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61963 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/arch/x86/postcar_loader.c')
-rw-r--r--src/arch/x86/postcar_loader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c
index d46bf3c495..b5bfe3e6c9 100644
--- a/src/arch/x86/postcar_loader.c
+++ b/src/arch/x86/postcar_loader.c
@@ -19,7 +19,7 @@ static size_t var_mtrr_ctx_size(void)
return sizeof(struct var_mtrr_context) + mtrr_count * 2 * sizeof(msr_t);
}
-int postcar_frame_init(struct postcar_frame *pcf)
+static int postcar_frame_init(struct postcar_frame *pcf)
{
struct var_mtrr_context *ctx;
@@ -57,6 +57,8 @@ static void postcar_frame_common_mtrrs(struct postcar_frame *pcf)
postcar_frame_add_romcache(pcf, MTRR_TYPE_WRPROT);
}
+static void run_postcar_phase(struct postcar_frame *pcf);
+
/* prepare_and_run_postcar() determines the stack to use after
* cache-as-ram is torn down as well as the MTRR settings to use. */
void prepare_and_run_postcar(struct postcar_frame *pcf)
@@ -129,7 +131,7 @@ static void postcar_cache_invalid(void)
board_reset();
}
-void run_postcar_phase(struct postcar_frame *pcf)
+static void run_postcar_phase(struct postcar_frame *pcf)
{
struct prog prog =
PROG_INIT(PROG_POSTCAR, CONFIG_CBFS_PREFIX "/postcar");