diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-06-17 23:56:50 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-06-17 23:56:50 +0200 |
| commit | 19ffdc8218284937b1ac4fc8ef9a19a536b4a887 (patch) | |
| tree | 6226d6c04f169b5f54ab58034568aba7ed927c61 /src | |
| parent | d48a66377317771bb22c7b5e97661a91535be97f (diff) | |
fix: see below.
fix:
- match flash base address according to qemu `virt`.
- make use of correct offsets in the firmware's entrypoint.
refactor:
- rename flash.c to flash-driver.c
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/coreboot-start.c | 2 | ||||
| -rw-r--r-- | src/hal/coreboot-flash-driver.c (renamed from src/hal/coreboot-flash.c) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/coreboot-start.c b/src/coreboot-start.c index da6da23..7a93744 100644 --- a/src/coreboot-start.c +++ b/src/coreboot-start.c @@ -108,7 +108,7 @@ void cb_start_exec(void) { cb_put_string("CB> Trying EPM partition...\r\n"); part_block_t* blk = - cb_parse_partition_block_at((voidptr_t) CB_FLASH_BASE_ADDR, EPM_PART_BLK_SZ, 0); + cb_parse_partition_block_at((voidptr_t) CB_BOOT_ADDR, EPM_PART_BLK_SZ, 0); if (blk) { cb_pci_append_tree("@stage2-epm", (cb_pci_num_t) blk, sizeof(part_block_t) * blk->num_blocks); diff --git a/src/hal/coreboot-flash.c b/src/hal/coreboot-flash-driver.c index d1b0907..d1b0907 100644 --- a/src/hal/coreboot-flash.c +++ b/src/hal/coreboot-flash-driver.c |
