summaryrefslogtreecommitdiffhomepage
path: root/src/coreboot-start.c
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-29 05:08:35 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-29 05:08:35 +0100
commit51cd421030c52aa16e76811d3497d9a7ab2b1bec (patch)
treec6f01df11faf8fc37993e0f342e4c82cab724555 /src/coreboot-start.c
parentfcc66b0fa04b25b206e702110ed652fd4c113823 (diff)
xcoff: import xcoff changes from nekernel to fw.
meta: alongside other important changes (such as indexing boot offset as volatile) Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/coreboot-start.c')
-rw-r--r--src/coreboot-start.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/coreboot-start.c b/src/coreboot-start.c
index a4e1efc..21ee5b0 100644
--- a/src/coreboot-start.c
+++ b/src/coreboot-start.c
@@ -74,7 +74,7 @@ void cb_start_exec(void)
/// @brief Boots here if LX header matches what we except.
volatile struct cb_boot_header* boot_hdr =
- (volatile struct cb_boot_header*)(SYS_FLASH_BASE_ADDR);
+ (volatile struct cb_boot_header*)(CB_FLASH_BASE_ADDR);
/**
boot if:
@@ -82,10 +82,10 @@ void cb_start_exec(void)
- version matches.
*/
- if (boot_hdr->h_mag[0] == SYS_BOOT_MAG_0 &&
- boot_hdr->h_mag[1] == SYS_BOOT_MAG_1)
+ if (boot_hdr->h_mag[0] == CB_BOOT_MAG_0 &&
+ boot_hdr->h_mag[1] == CB_BOOT_MAG_1)
{
- if (boot_hdr->h_revision != SYS_BOOT_VER)
+ if (boot_hdr->h_revision != CB_BOOT_VER)
{
if (hart == 1)
{