aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/image/lzma-loader/src/cp0regdef.h
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2021-11-13 14:55:13 +0100
committerMathias Kresin <dev@kresin.me>2021-11-27 21:40:12 +0100
commita328b6831c0f1e47e4fd4da4e00c0b9cb53cf2e4 (patch)
tree003835e1580801039a0a1f1be1566956fbf18643 /target/linux/lantiq/image/lzma-loader/src/cp0regdef.h
parent1404ed25b8f4963da148f1da2e561ecde7a34df6 (diff)
downloadupstream-a328b6831c0f1e47e4fd4da4e00c0b9cb53cf2e4.tar.gz
upstream-a328b6831c0f1e47e4fd4da4e00c0b9cb53cf2e4.tar.bz2
upstream-a328b6831c0f1e47e4fd4da4e00c0b9cb53cf2e4.zip
lantiq: bring back okli loader
Removed due to being unused with 1f7a03a70603, but now required for the ar7 FRITZ!Box. Could be used for the ARV7519RW22 as well, for which the image generation was disabled due to a stock u-boot issue with kernel bigger than 2 MByte. The code is combination of the ath79 and ramips okli loader. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/image/lzma-loader/src/cp0regdef.h')
-rw-r--r--target/linux/lantiq/image/lzma-loader/src/cp0regdef.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/lantiq/image/lzma-loader/src/cp0regdef.h b/target/linux/lantiq/image/lzma-loader/src/cp0regdef.h
new file mode 100644
index 0000000000..c1188ad8c8
--- /dev/null
+++ b/target/linux/lantiq/image/lzma-loader/src/cp0regdef.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001 by Ralf Baechle
+ *
+ * Copyright (C) 2001, Monta Vista Software
+ * Author: jsun@mvista.com or jsun@junsun.net
+ */
+#ifndef _cp0regdef_h_
+#define _cp0regdef_h_
+
+#define CP0_INDEX $0
+#define CP0_RANDOM $1
+#define CP0_ENTRYLO0 $2
+#define CP0_ENTRYLO1 $3
+#define CP0_CONTEXT $4
+#define CP0_PAGEMASK $5
+#define CP0_WIRED $6
+#define CP0_BADVADDR $8
+#define CP0_COUNT $9
+#define CP0_ENTRYHI $10
+#define CP0_COMPARE $11
+#define CP0_STATUS $12
+#define CP0_CAUSE $13
+#define CP0_EPC $14
+#define CP0_PRID $15
+#define CP0_CONFIG $16
+#define CP0_LLADDR $17
+#define CP0_WATCHLO $18
+#define CP0_WATCHHI $19
+#define CP0_XCONTEXT $20
+#define CP0_FRAMEMASK $21
+#define CP0_DIAGNOSTIC $22
+#define CP0_PERFORMANCE $25
+#define CP0_ECC $26
+#define CP0_CACHEERR $27
+#define CP0_TAGLO $28
+#define CP0_TAGHI $29
+#define CP0_ERROREPC $30
+
+#endif