aboutsummaryrefslogtreecommitdiffstats
path: root/arch/metag
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-08-05 08:58:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-05 08:58:00 -0400
commit755b20f49220683bc2469f4d956dee39101440aa (patch)
treede85b9ecb341d30d3b4f86b7e45075d559cdfb4c /arch/metag
parentdd7fd3a82ce55e5772d41b1faa2439f15318a902 (diff)
parent6154c187b97ee7513046bb4eb317a89f738f13ef (diff)
Merge tag 'metag-for-v4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag
Pull metag architecture updates from James Hogan: "Just a few minor fixes: - Fix another incorrect inline asm register constraint, which has been lying quietly for 5 and a half years before finally causing build breakage during this merge window. - Removal of duplicated KERN_INFO from Joe Perches - Typo fixes from Andrea Gelmini" * tag 'metag-for-v4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag: metag: Fix __cmpxchg_u32 asm constraint for CMP metag: Remove duplicate KERN_<LEVEL> prefix metag: Fix typos
Diffstat (limited to 'arch/metag')
-rw-r--r--arch/metag/include/asm/cmpxchg_lnkget.h2
-rw-r--r--arch/metag/include/asm/metag_mem.h2
-rw-r--r--arch/metag/include/asm/metag_regs.h2
-rw-r--r--arch/metag/kernel/cachepart.c2
-rw-r--r--arch/metag/lib/divsi3.S4
-rw-r--r--arch/metag/mm/fault.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/arch/metag/include/asm/cmpxchg_lnkget.h b/arch/metag/include/asm/cmpxchg_lnkget.h
index 0154e2807ebb..2369ad394876 100644
--- a/arch/metag/include/asm/cmpxchg_lnkget.h
+++ b/arch/metag/include/asm/cmpxchg_lnkget.h
@@ -73,7 +73,7 @@ static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old,
73 " DCACHE [%2], %0\n" 73 " DCACHE [%2], %0\n"
74#endif 74#endif
75 "2:\n" 75 "2:\n"
76 : "=&d" (temp), "=&da" (retval) 76 : "=&d" (temp), "=&d" (retval)
77 : "da" (m), "bd" (old), "da" (new) 77 : "da" (m), "bd" (old), "da" (new)
78 : "cc" 78 : "cc"
79 ); 79 );
diff --git a/arch/metag/include/asm/metag_mem.h b/arch/metag/include/asm/metag_mem.h
index aa5a076df439..7848bc6d3b61 100644
--- a/arch/metag/include/asm/metag_mem.h
+++ b/arch/metag/include/asm/metag_mem.h
@@ -881,7 +881,7 @@
881#define PERFCTRL_DCSTALL 11 /* Dcache+TLB o/p delayed (per-thread) */ 881#define PERFCTRL_DCSTALL 11 /* Dcache+TLB o/p delayed (per-thread) */
882#define PERFCTRL_ICSTALL 12 /* Icache+TLB o/p delayed (per-thread) */ 882#define PERFCTRL_ICSTALL 12 /* Icache+TLB o/p delayed (per-thread) */
883 883
884#define PERFCTRL_INT 13 /* Internal core delailed events (see next) */ 884#define PERFCTRL_INT 13 /* Internal core detailed events (see next) */
885#define PERFCTRL_EXT 15 /* External source in core periphery */ 885#define PERFCTRL_EXT 15 /* External source in core periphery */
886#endif /* METAC_2_1 */ 886#endif /* METAC_2_1 */
887 887
diff --git a/arch/metag/include/asm/metag_regs.h b/arch/metag/include/asm/metag_regs.h
index 40c3f679c5b8..60b750971d8a 100644
--- a/arch/metag/include/asm/metag_regs.h
+++ b/arch/metag/include/asm/metag_regs.h
@@ -179,7 +179,7 @@
179; is best to dump these registers immediately at the start of a routine 179; is best to dump these registers immediately at the start of a routine
180; using a MSETL or SETL instruction- 180; using a MSETL or SETL instruction-
181; 181;
182; MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2; Only dump argments expected 182; MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2; Only dump arguments expected
183;or SETL [A0StP+#8++],D0Ar2 ; Up to two 32-bit args expected 183;or SETL [A0StP+#8++],D0Ar2 ; Up to two 32-bit args expected
184; 184;
185; For non-leaf routines it is always necessary to save and restore at least 185; For non-leaf routines it is always necessary to save and restore at least
diff --git a/arch/metag/kernel/cachepart.c b/arch/metag/kernel/cachepart.c
index 04b7d4f8429a..db944c2e7d88 100644
--- a/arch/metag/kernel/cachepart.c
+++ b/arch/metag/kernel/cachepart.c
@@ -15,7 +15,7 @@
15#define SYSC_DCPART(n) (SYSC_DCPART0 + SYSC_xCPARTn_STRIDE * (n)) 15#define SYSC_DCPART(n) (SYSC_DCPART0 + SYSC_xCPARTn_STRIDE * (n))
16#define SYSC_ICPART(n) (SYSC_ICPART0 + SYSC_xCPARTn_STRIDE * (n)) 16#define SYSC_ICPART(n) (SYSC_ICPART0 + SYSC_xCPARTn_STRIDE * (n))
17 17
18#define CACHE_ASSOCIATIVITY 4 /* 4 way set-assosiative */ 18#define CACHE_ASSOCIATIVITY 4 /* 4 way set-associative */
19#define ICACHE 0 19#define ICACHE 0
20#define DCACHE 1 20#define DCACHE 1
21 21
diff --git a/arch/metag/lib/divsi3.S b/arch/metag/lib/divsi3.S
index 7c8a8ae9a0a1..11124cc93dee 100644
--- a/arch/metag/lib/divsi3.S
+++ b/arch/metag/lib/divsi3.S
@@ -50,7 +50,7 @@ $LIDMCQuick:
50 ADDCC D0Re0,D0Re0,#1 ! If yes result += 1 50 ADDCC D0Re0,D0Re0,#1 ! If yes result += 1
51 SUBCC D1Ar1,D1Ar1,D1Re0 ! and A -= Bu 51 SUBCC D1Ar1,D1Ar1,D1Re0 ! and A -= Bu
52 ORS D0Ar4,D0Ar4,D0Ar4 ! Return neg result? 52 ORS D0Ar4,D0Ar4,D0Ar4 ! Return neg result?
53 NEG D0Ar2,D0Re0 ! Calulate neg result 53 NEG D0Ar2,D0Re0 ! Calculate neg result
54 MOVMI D0Re0,D0Ar2 ! Yes: Take neg result 54 MOVMI D0Re0,D0Ar2 ! Yes: Take neg result
55$LIDMCRet: 55$LIDMCRet:
56 MOV PC,D1RtP 56 MOV PC,D1RtP
@@ -94,7 +94,7 @@ $LIDMCLoop:
94 LSR D1Re0, D1Re0, #1 ! Shift down B 94 LSR D1Re0, D1Re0, #1 ! Shift down B
95 BNZ $LIDMCLoop ! Was single bit in curbit lost? 95 BNZ $LIDMCLoop ! Was single bit in curbit lost?
96 ORS D0Ar4,D0Ar4,D0Ar4 ! Return neg result? 96 ORS D0Ar4,D0Ar4,D0Ar4 ! Return neg result?
97 NEG D0Ar2,D0Re0 ! Calulate neg result 97 NEG D0Ar2,D0Re0 ! Calculate neg result
98 MOVMI D0Re0,D0Ar2 ! Yes: Take neg result 98 MOVMI D0Re0,D0Ar2 ! Yes: Take neg result
99 MOV PC,D1RtP 99 MOV PC,D1RtP
100 .size ___divsi3,.-___divsi3 100 .size ___divsi3,.-___divsi3
diff --git a/arch/metag/mm/fault.c b/arch/metag/mm/fault.c
index 372783a67dda..c765b3621b9b 100644
--- a/arch/metag/mm/fault.c
+++ b/arch/metag/mm/fault.c
@@ -187,7 +187,7 @@ bad_area_nosemaphore:
187 187
188 if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) && 188 if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) &&
189 printk_ratelimit()) { 189 printk_ratelimit()) {
190 pr_info("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)", 190 printk("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
191 task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG, 191 task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
192 tsk->comm, task_pid_nr(tsk), address, 192 tsk->comm, task_pid_nr(tsk), address,
193 regs->ctx.CurrPC, regs->ctx.AX[0].U0, 193 regs->ctx.CurrPC, regs->ctx.AX[0].U0,