summaryrefslogtreecommitdiffstats
path: root/include/command.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:57 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:57 +0200
commitdd7bf785a9d4ea2dfaeec8baa86fbf0aaae0e63f (patch)
tree8c14b97758e36e8b724f9e69525f552fd4527584 /include/command.h
parent3abdebe9cae1c63eee9f2d249e18ba31e39d7b32 (diff)
downloadbarebox-dd7bf785a9d4ea2dfaeec8baa86fbf0aaae0e63f.tar.gz
barebox-dd7bf785a9d4ea2dfaeec8baa86fbf0aaae0e63f.tar.xz
svn_rev_477
add alignment fix (hack?) for x86_64
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h
index 97c4ba06b8..e9deb7944e 100644
--- a/include/command.h
+++ b/include/command.h
@@ -50,7 +50,13 @@ struct cmd_tbl_s {
/* do auto completion on the arguments */
int (*complete)(int argc, char *argv[], char last_char, int maxv, char *cmdv[]);
#endif
-};
+}
+#ifdef __x86_64__
+/* This is required because the linker will put symbols on a 64 bit alignment */
+__attribute__((aligned(64)))
+#endif
+;
+
typedef struct cmd_tbl_s cmd_tbl_t;