diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-09-01 17:16:35 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-09-12 13:49:34 -0600 |
| commit | 7e2c23eacd8e6fe76306ebf3cd6e31d52695b617 (patch) | |
| tree | 14976c00f58d2429885c549a976743e14b034433 /common | |
| parent | 5cd1b21bf6f0f0ac037193f9aed4e50fafe7282a (diff) | |
bloblist: use correct types for physical addresses
It is expected that bloblists are stored in high memory beyond 2 GiB.
We must not use int as data type for these addresses but phys_addr_t.
Fixes: f9ef9fb033d5 ("bloblist: Handle alignment with a void entry")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/bloblist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/bloblist.c b/common/bloblist.c index 6e4f020d7c4..d5fa62249a9 100644 --- a/common/bloblist.c +++ b/common/bloblist.c @@ -149,7 +149,8 @@ static int bloblist_addrec(uint tag, int size, int align_log2, { struct bloblist_hdr *hdr = gd->bloblist; struct bloblist_rec *rec; - int data_start, aligned_start, new_alloced; + phys_addr_t data_start, aligned_start; + phys_size_t new_alloced; if (!align_log2) align_log2 = BLOBLIST_BLOB_ALIGN_LOG2; |
