summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:30 (GMT)
committerTom Rini <trini@ti.com>2013-02-01 20:07:49 (GMT)
commit5cb48582ac05931c66b00b46c60d3ee8c6fc7950 (patch)
treeffcaf6be1119502aa4d532cfa888dc9ef415e968 /arch/nios2
parent6ad77d88e57f6ab815ec7e85c5ac329054318c73 (diff)
downloadu-boot-5cb48582ac05931c66b00b46c60d3ee8c6fc7950.tar.xz
Add architecture-specific global data
We plan to move architecture-specific data into a separate structure so that we can make the rest of it common. As a first step, create struct arch_global_data to hold these fields. Initially it is empty. This patch applies to all archs at once. I can split it if this is really a pain. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/global_data.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/global_data.h b/arch/nios2/include/asm/global_data.h
index 413b485..cf8597b 100644
--- a/arch/nios2/include/asm/global_data.h
+++ b/arch/nios2/include/asm/global_data.h
@@ -23,6 +23,10 @@
#ifndef __ASM_NIOS2_GLOBALDATA_H_
#define __ASM_NIOS2_GLOBALDATA_H_
+/* Architecture-specific global data */
+struct arch_global_data {
+};
+
typedef struct global_data {
bd_t *bd;
unsigned long flags;
@@ -42,6 +46,7 @@ typedef struct global_data {
#endif
void **jt; /* Standalone app jump table */
char env_buf[32]; /* buffer for getenv() before reloc. */
+ struct arch_global_data arch; /* architecture-specific data */
} gd_t;
#include <asm-generic/global_data_flags.h>