diff options
| author | Simon Glass <[email protected]> | 2024-08-23 14:27:04 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-26 14:06:08 -0600 |
| commit | 92aa3ec321b50065d954185f38a1f38734a5ff0b (patch) | |
| tree | 49c211da7561f13fb09b60863a8f89e7b9551f39 /include | |
| parent | c283a2664eaa328a3767db667a7916c6d9021784 (diff) | |
global_data: Reduce size of early-malloc vars
The early malloc region is normally quite small and is certainly less
than 4GB, so use a 32-bit value for the limit and pointer. Update the
comments for clarity while we are here.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/global_data.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 253dd21d880..b09d4bc7d02 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -299,13 +299,13 @@ struct global_data { */ unsigned long malloc_base; /** - * @malloc_limit: limit address of early malloc() + * @malloc_limit: maximum size of early malloc() */ - unsigned long malloc_limit; + unsigned int malloc_limit; /** - * @malloc_ptr: current address of early malloc() + * @malloc_ptr: currently used bytes of early malloc() */ - unsigned long malloc_ptr; + unsigned int malloc_ptr; #endif #ifdef CONFIG_CONSOLE_RECORD /** |
