arch/x86: Mark prepare_and_run_postcar noreturn

This moves the die() statement to a common place.

Change-Id: I24c9f00bfee169b4ca57b469c089188ec62ddada
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65812
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Julius Werner <jwerner@chromium.org>
diff --git a/src/arch/x86/include/arch/romstage.h b/src/arch/x86/include/arch/romstage.h
index d637d19..063d4ed 100644
--- a/src/arch/x86/include/arch/romstage.h
+++ b/src/arch/x86/include/arch/romstage.h
@@ -43,7 +43,7 @@
  * 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(void);
+void __noreturn prepare_and_run_postcar(void);
 
 /*
  * Systems without a native coreboot cache-as-ram teardown may implement
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c
index af8152d..c6a128b 100644
--- a/src/arch/x86/postcar_loader.c
+++ b/src/arch/x86/postcar_loader.c
@@ -63,7 +63,7 @@
 
 /* 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(void)
+void __noreturn prepare_and_run_postcar(void)
 {
 	struct postcar_frame pcf;
 
@@ -76,6 +76,7 @@
 
 	run_postcar_phase(&pcf);
 	/* We do not return here. */
+	die("Failed to load postcar\n!");
 }
 
 static void finalize_load(uintptr_t *reloc_params, uintptr_t mtrr_frame_ptr)
diff --git a/src/cpu/intel/car/romstage.c b/src/cpu/intel/car/romstage.c
index a2d1a89..7a7d077 100644
--- a/src/cpu/intel/car/romstage.c
+++ b/src/cpu/intel/car/romstage.c
@@ -54,5 +54,4 @@
 
 	prepare_and_run_postcar();
 	/* We do not return here. */
-	die("failed to load postcar\n");
 }
diff --git a/src/drivers/amd/agesa/romstage.c b/src/drivers/amd/agesa/romstage.c
index 82ef31e..f60239a 100644
--- a/src/drivers/amd/agesa/romstage.c
+++ b/src/drivers/amd/agesa/romstage.c
@@ -76,7 +76,6 @@
 
 	prepare_and_run_postcar();
 	/* We do not return. */
-	die("failed to load postcar\n");
 }
 
 static void ap_romstage_main(void)
diff --git a/src/soc/amd/stoneyridge/romstage.c b/src/soc/amd/stoneyridge/romstage.c
index 973e609..7d1124a 100644
--- a/src/soc/amd/stoneyridge/romstage.c
+++ b/src/soc/amd/stoneyridge/romstage.c
@@ -119,7 +119,6 @@
 
 	post_code(0x44);
 	prepare_and_run_postcar();
-	die("failed to load postcar\n");
 }
 
 void fill_postcar_frame(struct postcar_frame *pcf)