mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
global_data: unify global flag defines
All the global flag defines are the same across all arches. So unify them in one place, and add a simple way for arches to extend for their needs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
033220e7a4
commit
47fde91f0c
@ -29,8 +29,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -86,17 +84,7 @@ typedef struct global_data {
|
|||||||
#endif
|
#endif
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r8")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r8")
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -52,17 +50,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm("r5")
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm("r5")
|
||||||
|
|
||||||
|
@ -36,8 +36,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
bd_t *bd;
|
bd_t *bd;
|
||||||
@ -61,17 +59,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3")
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -70,17 +68,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
extern gd_t *global_data;
|
extern gd_t *global_data;
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -49,17 +47,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31")
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -63,17 +61,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
|
||||||
|
|
||||||
|
@ -39,8 +39,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set CONFIG_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -67,17 +65,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Envs imported into hash table */
|
|
||||||
|
|
||||||
#ifdef CONFIG_GLOBAL_DATA_NOT_REG10
|
#ifdef CONFIG_GLOBAL_DATA_NOT_REG10
|
||||||
extern volatile gd_t g_gd;
|
extern volatile gd_t g_gd;
|
||||||
|
@ -44,15 +44,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/* flags */
|
#include <asm-generic/global_data_flags.h>
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
|
||||||
|
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -48,25 +46,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
/* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_RELOC 0x00001
|
|
||||||
/* Devices have been initialized */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002
|
|
||||||
/* Silent mode */
|
|
||||||
#define GD_FLG_SILENT 0x00004
|
|
||||||
/* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008
|
|
||||||
/* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010
|
|
||||||
/* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020
|
|
||||||
/* Disable console (in & out) */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040
|
|
||||||
/* Environment imported into hash table */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080
|
|
||||||
|
|
||||||
/* OR32 GCC already has r10 set as fixed-use */
|
/* OR32 GCC already has r10 set as fixed-use */
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r10")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r10")
|
||||||
|
@ -33,8 +33,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -186,17 +184,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r2")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r2")
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -50,17 +48,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Env. imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd
|
#define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd
|
||||||
|
|
||||||
|
@ -44,14 +44,7 @@ typedef struct global_data
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
#include <asm-generic/global_data_flags.h>
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("r13")
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("r13")
|
||||||
|
|
||||||
|
@ -35,8 +35,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct global_data {
|
typedef struct global_data {
|
||||||
@ -78,17 +76,7 @@ typedef struct global_data {
|
|||||||
char env_buf[32]; /* buffer for getenv() before reloc. */
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
||||||
} gd_t;
|
} gd_t;
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("%g7")
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("%g7")
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
* some locked parts of the data cache) to allow for a minimum set of
|
* some locked parts of the data cache) to allow for a minimum set of
|
||||||
* global variables during system initialization (until we have set
|
* global variables during system initialization (until we have set
|
||||||
* up the memory controller so that we can use RAM).
|
* up the memory controller so that we can use RAM).
|
||||||
*
|
|
||||||
* Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
@ -74,17 +72,7 @@ static inline gd_t *get_fs_gd_ptr(void)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
#include <asm-generic/global_data_flags.h>
|
||||||
* Global Data Flags
|
|
||||||
*/
|
|
||||||
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
|
|
||||||
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
|
|
||||||
#define GD_FLG_SILENT 0x00004 /* Silent mode */
|
|
||||||
#define GD_FLG_POSTFAIL 0x00008 /* Critical POST test failed */
|
|
||||||
#define GD_FLG_POSTSTOP 0x00010 /* POST seqeunce aborted */
|
|
||||||
#define GD_FLG_LOGINIT 0x00020 /* Log Buffer has been initialized */
|
|
||||||
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
|
|
||||||
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */
|
|
||||||
|
|
||||||
#define DECLARE_GLOBAL_DATA_PTR
|
#define DECLARE_GLOBAL_DATA_PTR
|
||||||
|
|
||||||
|
28
include/asm-generic/global_data_flags.h
Normal file
28
include/asm-generic/global_data_flags.h
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* transitional header until we merge global_data.h
|
||||||
|
*
|
||||||
|
* (C) Copyright 2000-2010
|
||||||
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
|
*
|
||||||
|
* Licensed under the GPL-2 or later.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __ASM_GENERIC_GLOBAL_DATA_FLAGS_H
|
||||||
|
#define __ASM_GENERIC_GLOBAL_DATA_FLAGS_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Global Data Flags
|
||||||
|
*
|
||||||
|
* Note: The low 16 bits are expected for common code. If your arch
|
||||||
|
* really needs to add your own, use the high 16bits.
|
||||||
|
*/
|
||||||
|
#define GD_FLG_RELOC 0x0001 /* Code was relocated to RAM */
|
||||||
|
#define GD_FLG_DEVINIT 0x0002 /* Devices have been initialized */
|
||||||
|
#define GD_FLG_SILENT 0x0004 /* Silent mode */
|
||||||
|
#define GD_FLG_POSTFAIL 0x0008 /* Critical POST test failed */
|
||||||
|
#define GD_FLG_POSTSTOP 0x0010 /* POST seqeunce aborted */
|
||||||
|
#define GD_FLG_LOGINIT 0x0020 /* Log Buffer has been initialized */
|
||||||
|
#define GD_FLG_DISABLE_CONSOLE 0x0040 /* Disable console (in & out) */
|
||||||
|
#define GD_FLG_ENV_READY 0x0080 /* Environment imported into hash table */
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user