diff options
| -rw-r--r-- | arch/nios2/include/asm/thread_info.h | 4 | ||||
| -rw-r--r-- | arch/nios2/include/uapi/asm/ptrace.h | 9 | ||||
| -rw-r--r-- | arch/nios2/kernel/entry.S | 2 | ||||
| -rw-r--r-- | arch/nios2/kernel/signal.c | 2 | ||||
| -rw-r--r-- | arch/nios2/mm/cacheflush.c | 3 |
5 files changed, 9 insertions, 11 deletions
diff --git a/arch/nios2/include/asm/thread_info.h b/arch/nios2/include/asm/thread_info.h index 1f266575beb5..a16e55cbd8ad 100644 --- a/arch/nios2/include/asm/thread_info.h +++ b/arch/nios2/include/asm/thread_info.h | |||
| @@ -47,7 +47,6 @@ struct thread_info { | |||
| 47 | 0-0x7FFFFFFF for user-thead | 47 | 0-0x7FFFFFFF for user-thead |
| 48 | 0-0xFFFFFFFF for kernel-thread | 48 | 0-0xFFFFFFFF for kernel-thread |
| 49 | */ | 49 | */ |
| 50 | struct restart_block restart_block; | ||
| 51 | struct pt_regs *regs; | 50 | struct pt_regs *regs; |
| 52 | }; | 51 | }; |
| 53 | 52 | ||
| @@ -64,9 +63,6 @@ struct thread_info { | |||
| 64 | .cpu = 0, \ | 63 | .cpu = 0, \ |
| 65 | .preempt_count = INIT_PREEMPT_COUNT, \ | 64 | .preempt_count = INIT_PREEMPT_COUNT, \ |
| 66 | .addr_limit = KERNEL_DS, \ | 65 | .addr_limit = KERNEL_DS, \ |
| 67 | .restart_block = { \ | ||
| 68 | .fn = do_no_restart_syscall, \ | ||
| 69 | }, \ | ||
| 70 | } | 66 | } |
| 71 | 67 | ||
| 72 | #define init_thread_info (init_thread_union.thread_info) | 68 | #define init_thread_info (init_thread_union.thread_info) |
diff --git a/arch/nios2/include/uapi/asm/ptrace.h b/arch/nios2/include/uapi/asm/ptrace.h index 71a330597adf..eff00e67c0a2 100644 --- a/arch/nios2/include/uapi/asm/ptrace.h +++ b/arch/nios2/include/uapi/asm/ptrace.h | |||
| @@ -60,12 +60,17 @@ | |||
| 60 | #define PTR_IPENDING 37 | 60 | #define PTR_IPENDING 37 |
| 61 | #define PTR_CPUID 38 | 61 | #define PTR_CPUID 38 |
| 62 | #define PTR_CTL6 39 | 62 | #define PTR_CTL6 39 |
| 63 | #define PTR_CTL7 40 | 63 | #define PTR_EXCEPTION 40 |
| 64 | #define PTR_PTEADDR 41 | 64 | #define PTR_PTEADDR 41 |
| 65 | #define PTR_TLBACC 42 | 65 | #define PTR_TLBACC 42 |
| 66 | #define PTR_TLBMISC 43 | 66 | #define PTR_TLBMISC 43 |
| 67 | #define PTR_ECCINJ 44 | ||
| 68 | #define PTR_BADADDR 45 | ||
| 69 | #define PTR_CONFIG 46 | ||
| 70 | #define PTR_MPUBASE 47 | ||
| 71 | #define PTR_MPUACC 48 | ||
| 67 | 72 | ||
| 68 | #define NUM_PTRACE_REG (PTR_TLBMISC + 1) | 73 | #define NUM_PTRACE_REG (PTR_MPUACC + 1) |
| 69 | 74 | ||
| 70 | /* User structures for general purpose registers. */ | 75 | /* User structures for general purpose registers. */ |
| 71 | struct user_pt_regs { | 76 | struct user_pt_regs { |
diff --git a/arch/nios2/kernel/entry.S b/arch/nios2/kernel/entry.S index 7729bd3f2e79..27b006c52e12 100644 --- a/arch/nios2/kernel/entry.S +++ b/arch/nios2/kernel/entry.S | |||
| @@ -161,7 +161,7 @@ ENTRY(inthandler) | |||
| 161 | *********************************************************************** | 161 | *********************************************************************** |
| 162 | */ | 162 | */ |
| 163 | ENTRY(handle_trap) | 163 | ENTRY(handle_trap) |
| 164 | ldw r24, -4(ea) /* instruction that caused the exception */ | 164 | ldwio r24, -4(ea) /* instruction that caused the exception */ |
| 165 | srli r24, r24, 4 | 165 | srli r24, r24, 4 |
| 166 | andi r24, r24, 0x7c | 166 | andi r24, r24, 0x7c |
| 167 | movia r9,trap_table | 167 | movia r9,trap_table |
diff --git a/arch/nios2/kernel/signal.c b/arch/nios2/kernel/signal.c index dda41e4fe707..20662b0f6c9e 100644 --- a/arch/nios2/kernel/signal.c +++ b/arch/nios2/kernel/signal.c | |||
| @@ -43,7 +43,7 @@ static inline int rt_restore_ucontext(struct pt_regs *regs, | |||
| 43 | int err; | 43 | int err; |
| 44 | 44 | ||
| 45 | /* Always make any pending restarted system calls return -EINTR */ | 45 | /* Always make any pending restarted system calls return -EINTR */ |
| 46 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 46 | current->restart_block.fn = do_no_restart_syscall; |
| 47 | 47 | ||
| 48 | err = __get_user(temp, &uc->uc_mcontext.version); | 48 | err = __get_user(temp, &uc->uc_mcontext.version); |
| 49 | if (temp != MCONTEXT_VERSION) | 49 | if (temp != MCONTEXT_VERSION) |
diff --git a/arch/nios2/mm/cacheflush.c b/arch/nios2/mm/cacheflush.c index 2ae482b42669..796642932e2e 100644 --- a/arch/nios2/mm/cacheflush.c +++ b/arch/nios2/mm/cacheflush.c | |||
| @@ -23,9 +23,6 @@ static void __flush_dcache(unsigned long start, unsigned long end) | |||
| 23 | end += (cpuinfo.dcache_line_size - 1); | 23 | end += (cpuinfo.dcache_line_size - 1); |
| 24 | end &= ~(cpuinfo.dcache_line_size - 1); | 24 | end &= ~(cpuinfo.dcache_line_size - 1); |
| 25 | 25 | ||
| 26 | if (end > start + cpuinfo.dcache_size) | ||
| 27 | end = start + cpuinfo.dcache_size; | ||
| 28 | |||
| 29 | for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { | 26 | for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { |
| 30 | __asm__ __volatile__ (" flushda 0(%0)\n" | 27 | __asm__ __volatile__ (" flushda 0(%0)\n" |
| 31 | : /* Outputs */ | 28 | : /* Outputs */ |
