summaryrefslogtreecommitdiffstats
path: root/arch/metag/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2012-10-09 10:54:32 +0100
committerJames Hogan <james.hogan@imgtec.com>2013-03-02 20:09:54 +0000
commit5633004cc2498ff50a5b88d415d3746ff0c301f2 (patch)
treeb60265906c89e68022b8013e2aa2a19127fe3a24 /arch/metag/kernel/asm-offsets.c
parent79f83c02944ccb3dffbc5852e63e966ea34ed63e (diff)
downloadop-kernel-dev-5633004cc2498ff50a5b88d415d3746ff0c301f2.zip
op-kernel-dev-5633004cc2498ff50a5b88d415d3746ff0c301f2.tar.gz
metag: Build infrastructure
Add metag build infrastructure. Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/metag/kernel/asm-offsets.c')
-rw-r--r--arch/metag/kernel/asm-offsets.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/metag/kernel/asm-offsets.c b/arch/metag/kernel/asm-offsets.c
new file mode 100644
index 0000000..bfc9205
--- /dev/null
+++ b/arch/metag/kernel/asm-offsets.c
@@ -0,0 +1,14 @@
+/*
+ * This program is used to generate definitions needed by
+ * assembly language modules.
+ *
+ */
+
+#include <linux/kbuild.h>
+#include <linux/thread_info.h>
+
+int main(void)
+{
+ DEFINE(THREAD_INFO_SIZE, sizeof(struct thread_info));
+ return 0;
+}
OpenPOWER on IntegriCloud