mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 19:04:38 +00:00
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 <sjg@chromium.org>
This commit is contained in:
parent
423bdf6690
commit
52cd51c02f
2 changed files with 9 additions and 8 deletions
|
@ -113,22 +113,22 @@ struct global_data {
|
||||||
* environment variables.
|
* environment variables.
|
||||||
*/
|
*/
|
||||||
unsigned long env_addr;
|
unsigned long env_addr;
|
||||||
/**
|
|
||||||
* @env_valid: environment is valid
|
|
||||||
*
|
|
||||||
* See &enum env_valid
|
|
||||||
*/
|
|
||||||
unsigned long env_valid;
|
|
||||||
/**
|
/**
|
||||||
* @env_has_init: bit mask indicating environment locations
|
* @env_has_init: bit mask indicating environment locations
|
||||||
*
|
*
|
||||||
* &enum env_location defines which bit relates to which location
|
* &enum env_location defines which bit relates to which location
|
||||||
*/
|
*/
|
||||||
unsigned long env_has_init;
|
unsigned short env_has_init;
|
||||||
|
/**
|
||||||
|
* @env_valid: environment is valid
|
||||||
|
*
|
||||||
|
* See &enum env_valid
|
||||||
|
*/
|
||||||
|
unsigned char env_valid;
|
||||||
/**
|
/**
|
||||||
* @env_load_prio: priority of the loaded environment
|
* @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
|
* @ram_base: base address of RAM used by U-Boot
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -100,6 +100,7 @@ extern const char default_environment[];
|
||||||
#include <env_flags.h>
|
#include <env_flags.h>
|
||||||
#include <search.h>
|
#include <search.h>
|
||||||
|
|
||||||
|
/* this is stored as bits in gd->env_has_init so is limited to 16 entries */
|
||||||
enum env_location {
|
enum env_location {
|
||||||
ENVL_UNKNOWN,
|
ENVL_UNKNOWN,
|
||||||
ENVL_EEPROM,
|
ENVL_EEPROM,
|
||||||
|
|
Loading…
Add table
Reference in a new issue