diff options
author | Denys Dmytriyenko <denys@ti.com> | 2015-05-06 13:24:53 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2015-05-06 13:51:41 -0400 |
commit | 84a71a2560d56081a04b26fe50cfbb666df22f95 (patch) | |
tree | d681a25b2dc1533c5661f31a01fddf934602d0e5 /recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0026-m68k-Fix-assembler-constraint-to-prevent-overeager-g.patch | |
parent | 7126dca19c9f109c7394267176547d24fd5eb259 (diff) | |
download | meta-ti-84a71a2560d56081a04b26fe50cfbb666df22f95.tar.gz |
linux: remove outdated kernel recipes
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0026-m68k-Fix-assembler-constraint-to-prevent-overeager-g.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0026-m68k-Fix-assembler-constraint-to-prevent-overeager-g.patch | 172 |
1 files changed, 0 insertions, 172 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0026-m68k-Fix-assembler-constraint-to-prevent-overeager-g.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0026-m68k-Fix-assembler-constraint-to-prevent-overeager-g.patch deleted file mode 100644 index 1e1762d6..00000000 --- a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0026-m68k-Fix-assembler-constraint-to-prevent-overeager-g.patch +++ /dev/null | |||
@@ -1,172 +0,0 @@ | |||
1 | From fc1407525a7f1db7e288fddede6111d9c31d61cc Mon Sep 17 00:00:00 2001 | ||
2 | From: Andreas Schwab <schwab@linux-m68k.org> | ||
3 | Date: Mon, 9 Jan 2012 15:10:15 +0100 | ||
4 | Subject: [PATCH 26/90] m68k: Fix assembler constraint to prevent overeager | ||
5 | gcc optimisation | ||
6 | |||
7 | commit 2a3535069e33d8b416f406c159ce924427315303 upstream. | ||
8 | |||
9 | Passing the address of a variable as an operand to an asm statement | ||
10 | doesn't mark the value of this variable as used, so gcc may optimize its | ||
11 | initialisation away. Fix this by using the "m" constraint instead. | ||
12 | |||
13 | Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> | ||
14 | Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> | ||
15 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | ||
16 | --- | ||
17 | arch/m68k/atari/config.c | 8 ++++---- | ||
18 | arch/m68k/kernel/process_mm.c | 4 ++-- | ||
19 | arch/m68k/kernel/process_no.c | 4 ++-- | ||
20 | arch/m68k/kernel/traps.c | 36 +++++++++++++++++------------------- | ||
21 | arch/m68k/mm/cache.c | 6 +++--- | ||
22 | 5 files changed, 28 insertions(+), 30 deletions(-) | ||
23 | |||
24 | diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c | ||
25 | index 4203d10..c4ac15c 100644 | ||
26 | --- a/arch/m68k/atari/config.c | ||
27 | +++ b/arch/m68k/atari/config.c | ||
28 | @@ -414,9 +414,9 @@ void __init config_atari(void) | ||
29 | * FDC val = 4 -> Supervisor only */ | ||
30 | asm volatile ("\n" | ||
31 | " .chip 68030\n" | ||
32 | - " pmove %0@,%/tt1\n" | ||
33 | + " pmove %0,%/tt1\n" | ||
34 | " .chip 68k" | ||
35 | - : : "a" (&tt1_val)); | ||
36 | + : : "m" (tt1_val)); | ||
37 | } else { | ||
38 | asm volatile ("\n" | ||
39 | " .chip 68040\n" | ||
40 | @@ -569,10 +569,10 @@ static void atari_reset(void) | ||
41 | : "d0"); | ||
42 | } else | ||
43 | asm volatile ("\n" | ||
44 | - " pmove %0@,%%tc\n" | ||
45 | + " pmove %0,%%tc\n" | ||
46 | " jmp %1@" | ||
47 | : /* no outputs */ | ||
48 | - : "a" (&tc_val), "a" (reset_addr)); | ||
49 | + : "m" (tc_val), "a" (reset_addr)); | ||
50 | } | ||
51 | |||
52 | |||
53 | diff --git a/arch/m68k/kernel/process_mm.c b/arch/m68k/kernel/process_mm.c | ||
54 | index 1bc223a..aa4ffb8 100644 | ||
55 | --- a/arch/m68k/kernel/process_mm.c | ||
56 | +++ b/arch/m68k/kernel/process_mm.c | ||
57 | @@ -189,8 +189,8 @@ void flush_thread(void) | ||
58 | current->thread.fs = __USER_DS; | ||
59 | if (!FPU_IS_EMU) | ||
60 | asm volatile (".chip 68k/68881\n\t" | ||
61 | - "frestore %0@\n\t" | ||
62 | - ".chip 68k" : : "a" (&zero)); | ||
63 | + "frestore %0\n\t" | ||
64 | + ".chip 68k" : : "m" (zero)); | ||
65 | } | ||
66 | |||
67 | /* | ||
68 | diff --git a/arch/m68k/kernel/process_no.c b/arch/m68k/kernel/process_no.c | ||
69 | index 69c1803..5e1078c 100644 | ||
70 | --- a/arch/m68k/kernel/process_no.c | ||
71 | +++ b/arch/m68k/kernel/process_no.c | ||
72 | @@ -163,8 +163,8 @@ void flush_thread(void) | ||
73 | #ifdef CONFIG_FPU | ||
74 | if (!FPU_IS_EMU) | ||
75 | asm volatile (".chip 68k/68881\n\t" | ||
76 | - "frestore %0@\n\t" | ||
77 | - ".chip 68k" : : "a" (&zero)); | ||
78 | + "frestore %0\n\t" | ||
79 | + ".chip 68k" : : "m" (zero)); | ||
80 | #endif | ||
81 | } | ||
82 | |||
83 | diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c | ||
84 | index 89362f2..eb67469 100644 | ||
85 | --- a/arch/m68k/kernel/traps.c | ||
86 | +++ b/arch/m68k/kernel/traps.c | ||
87 | @@ -552,13 +552,13 @@ static inline void bus_error030 (struct frame *fp) | ||
88 | |||
89 | #ifdef DEBUG | ||
90 | asm volatile ("ptestr %3,%2@,#7,%0\n\t" | ||
91 | - "pmove %%psr,%1@" | ||
92 | - : "=a&" (desc) | ||
93 | - : "a" (&temp), "a" (addr), "d" (ssw)); | ||
94 | + "pmove %%psr,%1" | ||
95 | + : "=a&" (desc), "=m" (temp) | ||
96 | + : "a" (addr), "d" (ssw)); | ||
97 | #else | ||
98 | asm volatile ("ptestr %2,%1@,#7\n\t" | ||
99 | - "pmove %%psr,%0@" | ||
100 | - : : "a" (&temp), "a" (addr), "d" (ssw)); | ||
101 | + "pmove %%psr,%0" | ||
102 | + : "=m" (temp) : "a" (addr), "d" (ssw)); | ||
103 | #endif | ||
104 | mmusr = temp; | ||
105 | |||
106 | @@ -605,20 +605,18 @@ static inline void bus_error030 (struct frame *fp) | ||
107 | !(ssw & RW) ? "write" : "read", addr, | ||
108 | fp->ptregs.pc, ssw); | ||
109 | asm volatile ("ptestr #1,%1@,#0\n\t" | ||
110 | - "pmove %%psr,%0@" | ||
111 | - : /* no outputs */ | ||
112 | - : "a" (&temp), "a" (addr)); | ||
113 | + "pmove %%psr,%0" | ||
114 | + : "=m" (temp) | ||
115 | + : "a" (addr)); | ||
116 | mmusr = temp; | ||
117 | |||
118 | printk ("level 0 mmusr is %#x\n", mmusr); | ||
119 | #if 0 | ||
120 | - asm volatile ("pmove %%tt0,%0@" | ||
121 | - : /* no outputs */ | ||
122 | - : "a" (&tlong)); | ||
123 | + asm volatile ("pmove %%tt0,%0" | ||
124 | + : "=m" (tlong)); | ||
125 | printk("tt0 is %#lx, ", tlong); | ||
126 | - asm volatile ("pmove %%tt1,%0@" | ||
127 | - : /* no outputs */ | ||
128 | - : "a" (&tlong)); | ||
129 | + asm volatile ("pmove %%tt1,%0" | ||
130 | + : "=m" (tlong)); | ||
131 | printk("tt1 is %#lx\n", tlong); | ||
132 | #endif | ||
133 | #ifdef DEBUG | ||
134 | @@ -668,13 +666,13 @@ static inline void bus_error030 (struct frame *fp) | ||
135 | |||
136 | #ifdef DEBUG | ||
137 | asm volatile ("ptestr #1,%2@,#7,%0\n\t" | ||
138 | - "pmove %%psr,%1@" | ||
139 | - : "=a&" (desc) | ||
140 | - : "a" (&temp), "a" (addr)); | ||
141 | + "pmove %%psr,%1" | ||
142 | + : "=a&" (desc), "=m" (temp) | ||
143 | + : "a" (addr)); | ||
144 | #else | ||
145 | asm volatile ("ptestr #1,%1@,#7\n\t" | ||
146 | - "pmove %%psr,%0@" | ||
147 | - : : "a" (&temp), "a" (addr)); | ||
148 | + "pmove %%psr,%0" | ||
149 | + : "=m" (temp) : "a" (addr)); | ||
150 | #endif | ||
151 | mmusr = temp; | ||
152 | |||
153 | diff --git a/arch/m68k/mm/cache.c b/arch/m68k/mm/cache.c | ||
154 | index 5437fff..5550aa4 100644 | ||
155 | --- a/arch/m68k/mm/cache.c | ||
156 | +++ b/arch/m68k/mm/cache.c | ||
157 | @@ -52,9 +52,9 @@ static unsigned long virt_to_phys_slow(unsigned long vaddr) | ||
158 | unsigned long *descaddr; | ||
159 | |||
160 | asm volatile ("ptestr %3,%2@,#7,%0\n\t" | ||
161 | - "pmove %%psr,%1@" | ||
162 | - : "=a&" (descaddr) | ||
163 | - : "a" (&mmusr), "a" (vaddr), "d" (get_fs().seg)); | ||
164 | + "pmove %%psr,%1" | ||
165 | + : "=a&" (descaddr), "=m" (mmusr) | ||
166 | + : "a" (vaddr), "d" (get_fs().seg)); | ||
167 | if (mmusr & (MMU_I|MMU_B|MMU_L)) | ||
168 | return 0; | ||
169 | descaddr = phys_to_virt((unsigned long)descaddr); | ||
170 | -- | ||
171 | 1.7.9.4 | ||
172 | |||