diff options
| author | Simon Glass <[email protected]> | 2024-08-21 10:19:08 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-26 14:05:38 -0600 |
| commit | 52cd51c02fe0fcc4f86554de84e95607d62bdc21 (patch) | |
| tree | b99e80a0cda1401b05e1067ea989ecfd863445de /include/asm-generic | |
| parent | 423bdf669062991f33c396ea4e119b573ae80a14 (diff) | |
global_data: Use less space for environment fields
Use shorter types for some of these fields to save space. Reorder to put
fields with like alignment together.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/global_data.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 86e8d654a28..1252b8acefa 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -114,21 +114,21 @@ struct global_data { */ unsigned long env_addr; /** - * @env_valid: environment is valid + * @env_has_init: bit mask indicating environment locations * - * See &enum env_valid + * &enum env_location defines which bit relates to which location */ - unsigned long env_valid; + unsigned short env_has_init; /** - * @env_has_init: bit mask indicating environment locations + * @env_valid: environment is valid * - * &enum env_location defines which bit relates to which location + * See &enum env_valid */ - unsigned long env_has_init; + unsigned char env_valid; /** * @env_load_prio: priority of the loaded environment */ - int env_load_prio; + char env_load_prio; /** * @ram_base: base address of RAM used by U-Boot */ |
