]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/x86/include/asm/global_data.h
x86: Forward declare gd_t
[karo-tx-uboot.git] / arch / x86 / include / asm / global_data.h
index bce999f41ce3ee1f80ac1b03a36eac5f8ff64ee4..13a3ce8fbf5e24bc47aceffc89e5e73c3cfd40d3 100644 (file)
 
 #ifndef __ASSEMBLY__
 
-typedef        struct global_data {
+typedef struct global_data gd_t;
+
+struct global_data {
        /* NOTE: gd_addr MUST be first member of struct global_data! */
-       unsigned long   gd_addr;        /* Location of Global Data */
+       gd_t *gd_addr;  /* Location of Global Data */
        bd_t            *bd;
        unsigned long   flags;
        unsigned int    baudrate;
@@ -57,7 +59,7 @@ typedef       struct global_data {
        unsigned long   reset_status;   /* reset status register at boot */
        void            **jt;           /* jump table */
        char            env_buf[32];    /* buffer for getenv() before reloc. */
-} gd_t;
+};
 
 static inline gd_t *get_fs_gd_ptr(void)
 {