diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-02 09:48:06 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-02 09:48:06 +0200 |
| commit | b86c34ad45c2a066a9ca86a86b2c49d30697c671 (patch) | |
| tree | cdf6c3f1c6479e4efd7b6f3597619c3e7b57fcd9 /src/coreboot-partition-map-parse.c | |
| parent | c78e5763d8f5e471d043e6ed2752e245dbcaf047 (diff) | |
arm64: fix: a fully arm64 firmware + important fixes and patches.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/coreboot-partition-map-parse.c')
| -rw-r--r-- | src/coreboot-partition-map-parse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coreboot-partition-map-parse.c b/src/coreboot-partition-map-parse.c index 6e828d9..85ccf1b 100644 --- a/src/coreboot-partition-map-parse.c +++ b/src/coreboot-partition-map-parse.c @@ -16,7 +16,7 @@ bool cb_parse_partition_block_data_at(voidptr_t blob, size_t blob_sz, size_t ind (sizeof(part_block_t) * index) > blob_sz) return false; - part_block_t* block = (part_block_t*)(block + (sizeof(part_block_t) * index)); + part_block_t* block = (part_block_t*)(blob + (sizeof(part_block_t) * index)); if (block->version != EPM_REVISION || block->num_blocks < 1 || @@ -42,7 +42,9 @@ part_block_t* cb_parse_partition_block_at(voidptr_t blob, size_t blob_sz, size_t (sizeof(part_block_t) * index) > blob_sz) return nil; - part_block_t* block = (part_block_t*)(block + (sizeof(part_block_t) * index)); + part_block_t* block = (part_block_t*)(blob + (sizeof(part_block_t) * index)); + + cb_put_string(block->magic); if (block->version != EPM_REVISION || block->num_blocks < 1 || |
