src: Move POST_BOOTBLOCK_CAR to common postcodes and use it

This moves the definition for POST_BOOTBLOCK_CAR from the intel-specific
postcodes into the common postcode list, and uses it for the
cache-as-RAM init as needed.

Because POST_BOOTBLOCK_CAR was set to 0x20 in some spots and 0x21 in
most of the others, the values were consolidated into 0x21.  This will
change the value on some platforms.

Any conflicts should get sorted out later in the conversion process.

Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I8527334e679a23006b77a5645f919aea76dd4926
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71596
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Martin Roth
2022-12-31 18:27:22 -07:00
committed by Elyes Haouas
parent a891f71ad5
commit 0d34a50a36
5 changed files with 8 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
bootblock_pre_c_entry:
cache_as_ram:
post_code(0x20)
post_code(POST_BOOTBLOCK_CAR)
/*
* Nothing to do here on qemu, RAM works just fine without any
* initialization.
@@ -103,7 +103,6 @@ pages_done:
#endif
before_c_entry:
post_code(0x29)
call bootblock_c_entry_bist
/* Never returns */
.Lhlt: