summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-03-24 00:26:57 +0100
committerArthur Heymans <arthur@aheymans.xyz>2022-05-13 10:59:50 +0000
commit3473d16640081c984c102d489a3c927492051078 (patch)
tree32fc225efcd4cac7d991f86d44160d26b39ed43a
parent25a0c67e9d515f96bb8d3c3112715b03ac3944eb (diff)
drivers/intel/fsp1_1: Use C over CPP
This fixes building with clang. Change-Id: Ida464d9ff96af3ff485682fbbf904bb2253ec44f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63065 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/drivers/intel/fsp1_1/fsp_util.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/drivers/intel/fsp1_1/fsp_util.c b/src/drivers/intel/fsp1_1/fsp_util.c
index 7dc16c3896..1c205ae24a 100644
--- a/src/drivers/intel/fsp1_1/fsp_util.c
+++ b/src/drivers/intel/fsp1_1/fsp_util.c
@@ -89,26 +89,26 @@ void print_fsp_info(FSP_INFO_HEADER *fsp_header)
(u8)((fsp_header->ImageRevision >> 16) & 0xff),
(u8)((fsp_header->ImageRevision >> 8) & 0xff),
(u8)(fsp_header->ImageRevision & 0xff));
-#if CONFIG(DISPLAY_FSP_ENTRY_POINTS)
- printk(BIOS_SPEW, "FSP Entry Points:\n");
- printk(BIOS_SPEW, " %p: Image Base\n", fsp_base);
- printk(BIOS_SPEW, " %p: TempRamInit\n",
- &fsp_base[fsp_header->TempRamInitEntryOffset]);
- printk(BIOS_SPEW, " %p: FspInit\n",
- &fsp_base[fsp_header->FspInitEntryOffset]);
- if (fsp_header->HeaderRevision >= FSP_HEADER_REVISION_2) {
- printk(BIOS_SPEW, " %p: MemoryInit\n",
- &fsp_base[fsp_header->FspMemoryInitEntryOffset]);
- printk(BIOS_SPEW, " %p: TempRamExit\n",
- &fsp_base[fsp_header->TempRamExitEntryOffset]);
- printk(BIOS_SPEW, " %p: SiliconInit\n",
- &fsp_base[fsp_header->FspSiliconInitEntryOffset]);
+ if (CONFIG(DISPLAY_FSP_ENTRY_POINTS)) {
+ printk(BIOS_SPEW, "FSP Entry Points:\n");
+ printk(BIOS_SPEW, " %p: Image Base\n", fsp_base);
+ printk(BIOS_SPEW, " %p: TempRamInit\n",
+ &fsp_base[fsp_header->TempRamInitEntryOffset]);
+ printk(BIOS_SPEW, " %p: FspInit\n",
+ &fsp_base[fsp_header->FspInitEntryOffset]);
+ if (fsp_header->HeaderRevision >= FSP_HEADER_REVISION_2) {
+ printk(BIOS_SPEW, " %p: MemoryInit\n",
+ &fsp_base[fsp_header->FspMemoryInitEntryOffset]);
+ printk(BIOS_SPEW, " %p: TempRamExit\n",
+ &fsp_base[fsp_header->TempRamExitEntryOffset]);
+ printk(BIOS_SPEW, " %p: SiliconInit\n",
+ &fsp_base[fsp_header->FspSiliconInitEntryOffset]);
+ }
+ printk(BIOS_SPEW, " %p: NotifyPhase\n",
+ &fsp_base[fsp_header->NotifyPhaseEntryOffset]);
+ printk(BIOS_SPEW, " %p: Image End\n",
+ &fsp_base[fsp_header->ImageSize]);
}
- printk(BIOS_SPEW, " %p: NotifyPhase\n",
- &fsp_base[fsp_header->NotifyPhaseEntryOffset]);
- printk(BIOS_SPEW, " %p: Image End\n",
- &fsp_base[fsp_header->ImageSize]);
-#endif
}
void fsp_notify(u32 phase)