diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-27 11:12:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-27 11:12:20 -0500 |
commit | 562e74fefc36eb57286455c68a60f2776659a7e1 (patch) | |
tree | 1eeaeb09bc06ca65aad5e0c8882caab2bdcf1e90 /arch/cris/include | |
parent | 77d143de75812596a58d126606f42d1214e09dde (diff) | |
parent | e269a869417cd4053b37da1b19186902d3cbf63b (diff) |
Merge tag 'cris-for-3.14' of git://jni.nu/cris
Pull cris changes from Jesper Nilsson:
"Mostly removal of deprecated or old code, but also a long promised
update of the CRIS syscalls"
* tag 'cris-for-3.14' of git://jni.nu/cris:
Drop code for CRISv10 CPU simulator
Cleanup whitespace, remove old author tag
CRIS: Add missing syscalls
cris: sync_serial: remove interruptible_sleep_on
cris: remove deprecated IRQF_DISABLED
Diffstat (limited to 'arch/cris/include')
-rw-r--r-- | arch/cris/include/arch-v10/arch/io.h | 29 | ||||
-rw-r--r-- | arch/cris/include/arch-v10/arch/irq.h | 6 | ||||
-rw-r--r-- | arch/cris/include/arch-v32/arch/irq.h | 6 | ||||
-rw-r--r-- | arch/cris/include/asm/unistd.h | 2 | ||||
-rw-r--r-- | arch/cris/include/uapi/asm/unistd.h | 16 |
5 files changed, 24 insertions, 35 deletions
diff --git a/arch/cris/include/arch-v10/arch/io.h b/arch/cris/include/arch-v10/arch/io.h index f627ad0b8a3d..4a724172877f 100644 --- a/arch/cris/include/arch-v10/arch/io.h +++ b/arch/cris/include/arch-v10/arch/io.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _ASM_ARCH_CRIS_IO_H | 1 | #ifndef _ASM_ARCH_CRIS_IO_H |
2 | #define _ASM_ARCH_CRIS_IO_H | 2 | #define _ASM_ARCH_CRIS_IO_H |
3 | 3 | ||
4 | #include <arch/svinto.h> | ||
5 | |||
6 | /* Etrax shadow registers - which live in arch/cris/kernel/shadows.c */ | 4 | /* Etrax shadow registers - which live in arch/cris/kernel/shadows.c */ |
7 | 5 | ||
8 | extern unsigned long gen_config_ii_shadow; | 6 | extern unsigned long gen_config_ii_shadow; |
@@ -34,7 +32,7 @@ extern volatile unsigned long *port_csp4_addr; | |||
34 | 32 | ||
35 | /* The LED's on various Etrax-based products are set differently. */ | 33 | /* The LED's on various Etrax-based products are set differently. */ |
36 | 34 | ||
37 | #if defined(CONFIG_ETRAX_NO_LEDS) || defined(CONFIG_SVINTO_SIM) | 35 | #if defined(CONFIG_ETRAX_NO_LEDS) |
38 | #undef CONFIG_ETRAX_PA_LEDS | 36 | #undef CONFIG_ETRAX_PA_LEDS |
39 | #undef CONFIG_ETRAX_PB_LEDS | 37 | #undef CONFIG_ETRAX_PB_LEDS |
40 | #undef CONFIG_ETRAX_CSP0_LEDS | 38 | #undef CONFIG_ETRAX_CSP0_LEDS |
@@ -171,29 +169,4 @@ extern volatile unsigned long *port_csp4_addr; | |||
171 | #define SOFT_SHUTDOWN() | 169 | #define SOFT_SHUTDOWN() |
172 | #endif | 170 | #endif |
173 | 171 | ||
174 | /* Console I/O for simulated etrax100. Use #ifdef so erroneous | ||
175 | use will be evident. */ | ||
176 | #ifdef CONFIG_SVINTO_SIM | ||
177 | /* Let's use the ucsim interface since it lets us do write(2, ...) */ | ||
178 | #define SIMCOUT(s,len) \ | ||
179 | asm ("moveq 4,$r9 \n\t" \ | ||
180 | "moveq 2,$r10 \n\t" \ | ||
181 | "move.d %0,$r11 \n\t" \ | ||
182 | "move.d %1,$r12 \n\t" \ | ||
183 | "push $irp \n\t" \ | ||
184 | "move 0f,$irp \n\t" \ | ||
185 | "jump -6809 \n" \ | ||
186 | "0: \n\t" \ | ||
187 | "pop $irp" \ | ||
188 | : : "rm" (s), "rm" (len) : "r9","r10","r11","r12","memory") | ||
189 | #define TRACE_ON() __extension__ \ | ||
190 | ({ int _Foofoo; __asm__ volatile ("bmod [%0],%0" : "=r" (_Foofoo) : "0" \ | ||
191 | (255)); _Foofoo; }) | ||
192 | |||
193 | #define TRACE_OFF() do { __asm__ volatile ("bmod [%0],%0" :: "r" (254)); } while (0) | ||
194 | #define SIM_END() do { __asm__ volatile ("bmod [%0],%0" :: "r" (28)); } while (0) | ||
195 | #define CRIS_CYCLES() __extension__ \ | ||
196 | ({ unsigned long c; asm ("bmod [%1],%0" : "=r" (c) : "r" (27)); c;}) | ||
197 | #endif /* ! defined CONFIG_SVINTO_SIM */ | ||
198 | |||
199 | #endif | 172 | #endif |
diff --git a/arch/cris/include/arch-v10/arch/irq.h b/arch/cris/include/arch-v10/arch/irq.h index ca2675ae08ed..6aecb835037d 100644 --- a/arch/cris/include/arch-v10/arch/irq.h +++ b/arch/cris/include/arch-v10/arch/irq.h | |||
@@ -141,9 +141,9 @@ __asm__ ( \ | |||
141 | * handler is run and it prioritizes the timer interrupt. However if we had BLOCK'ed | 141 | * handler is run and it prioritizes the timer interrupt. However if we had BLOCK'ed |
142 | * it here, we would not get the multiple_irq at all. | 142 | * it here, we would not get the multiple_irq at all. |
143 | * | 143 | * |
144 | * The non-blocking here is based on the knowledge that the timer interrupt is | 144 | * The non-blocking here is based on the knowledge that the timer interrupt runs |
145 | * registered as a fast interrupt (IRQF_DISABLED) so that we _know_ there will not | 145 | * with interrupts disabled, and therefore there will not be an sti() before the |
146 | * be an sti() before the timer irq handler is run to acknowledge the interrupt. | 146 | * timer irq handler is run to acknowledge the interrupt. |
147 | */ | 147 | */ |
148 | 148 | ||
149 | #define BUILD_TIMER_IRQ(nr,mask) \ | 149 | #define BUILD_TIMER_IRQ(nr,mask) \ |
diff --git a/arch/cris/include/arch-v32/arch/irq.h b/arch/cris/include/arch-v32/arch/irq.h index fe3cdd22bed4..0c1b4d3a34e7 100644 --- a/arch/cris/include/arch-v32/arch/irq.h +++ b/arch/cris/include/arch-v32/arch/irq.h | |||
@@ -102,9 +102,9 @@ __asm__ ( \ | |||
102 | * multiple_irq handler is run and it prioritizes the timer interrupt. However | 102 | * multiple_irq handler is run and it prioritizes the timer interrupt. However |
103 | * if we had BLOCK'edit here, we would not get the multiple_irq at all. | 103 | * if we had BLOCK'edit here, we would not get the multiple_irq at all. |
104 | * | 104 | * |
105 | * The non-blocking here is based on the knowledge that the timer interrupt is | 105 | * The non-blocking here is based on the knowledge that the timer interrupt runs |
106 | * registered as a fast interrupt (IRQF_DISABLED) so that we _know_ there will not | 106 | * with interrupts disabled, and therefore there will not be an sti() before the |
107 | * be an sti() before the timer irq handler is run to acknowledge the interrupt. | 107 | * timer irq handler is run to acknowledge the interrupt. |
108 | */ | 108 | */ |
109 | #define BUILD_TIMER_IRQ(nr, mask) \ | 109 | #define BUILD_TIMER_IRQ(nr, mask) \ |
110 | void IRQ_NAME(nr); \ | 110 | void IRQ_NAME(nr); \ |
diff --git a/arch/cris/include/asm/unistd.h b/arch/cris/include/asm/unistd.h index 0ff3f6889842..5cc7d1991e48 100644 --- a/arch/cris/include/asm/unistd.h +++ b/arch/cris/include/asm/unistd.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include <uapi/asm/unistd.h> | 4 | #include <uapi/asm/unistd.h> |
5 | 5 | ||
6 | 6 | ||
7 | #define NR_syscalls 336 | 7 | #define NR_syscalls 360 |
8 | 8 | ||
9 | #include <arch/unistd.h> | 9 | #include <arch/unistd.h> |
10 | 10 | ||
diff --git a/arch/cris/include/uapi/asm/unistd.h b/arch/cris/include/uapi/asm/unistd.h index 48842896f6c2..f3287face443 100644 --- a/arch/cris/include/uapi/asm/unistd.h +++ b/arch/cris/include/uapi/asm/unistd.h | |||
@@ -340,5 +340,21 @@ | |||
340 | #define __NR_preadv 333 | 340 | #define __NR_preadv 333 |
341 | #define __NR_pwritev 334 | 341 | #define __NR_pwritev 334 |
342 | #define __NR_setns 335 | 342 | #define __NR_setns 335 |
343 | #define __NR_name_to_handle_at 336 | ||
344 | #define __NR_open_by_handle_at 337 | ||
345 | #define __NR_rt_tgsigqueueinfo 338 | ||
346 | #define __NR_perf_event_open 339 | ||
347 | #define __NR_recvmmsg 340 | ||
348 | #define __NR_accept4 341 | ||
349 | #define __NR_fanotify_init 342 | ||
350 | #define __NR_fanotify_mark 343 | ||
351 | #define __NR_prlimit64 344 | ||
352 | #define __NR_clock_adjtime 345 | ||
353 | #define __NR_syncfs 346 | ||
354 | #define __NR_sendmmsg 347 | ||
355 | #define __NR_process_vm_readv 348 | ||
356 | #define __NR_process_vm_writev 349 | ||
357 | #define __NR_kcmp 350 | ||
358 | #define __NR_finit_module 351 | ||
343 | 359 | ||
344 | #endif /* _UAPI_ASM_CRIS_UNISTD_H_ */ | 360 | #endif /* _UAPI_ASM_CRIS_UNISTD_H_ */ |