aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv
diff options
context:
space:
mode:
Diffstat (limited to 'arch/frv')
-rw-r--r--arch/frv/include/asm/thread_info.h4
-rw-r--r--arch/frv/kernel/asm-offsets.c1
-rw-r--r--arch/frv/kernel/signal.c2
3 files changed, 1 insertions, 6 deletions
diff --git a/arch/frv/include/asm/thread_info.h b/arch/frv/include/asm/thread_info.h
index af29e17c0181..6b917f1c2955 100644
--- a/arch/frv/include/asm/thread_info.h
+++ b/arch/frv/include/asm/thread_info.h
@@ -41,7 +41,6 @@ struct thread_info {
41 * 0-0xBFFFFFFF for user-thead 41 * 0-0xBFFFFFFF for user-thead
42 * 0-0xFFFFFFFF for kernel-thread 42 * 0-0xFFFFFFFF for kernel-thread
43 */ 43 */
44 struct restart_block restart_block;
45 44
46 __u8 supervisor_stack[0]; 45 __u8 supervisor_stack[0];
47}; 46};
@@ -65,9 +64,6 @@ struct thread_info {
65 .cpu = 0, \ 64 .cpu = 0, \
66 .preempt_count = INIT_PREEMPT_COUNT, \ 65 .preempt_count = INIT_PREEMPT_COUNT, \
67 .addr_limit = KERNEL_DS, \ 66 .addr_limit = KERNEL_DS, \
68 .restart_block = { \
69 .fn = do_no_restart_syscall, \
70 }, \
71} 67}
72 68
73#define init_thread_info (init_thread_union.thread_info) 69#define init_thread_info (init_thread_union.thread_info)
diff --git a/arch/frv/kernel/asm-offsets.c b/arch/frv/kernel/asm-offsets.c
index 9de96843a278..446e89d500cc 100644
--- a/arch/frv/kernel/asm-offsets.c
+++ b/arch/frv/kernel/asm-offsets.c
@@ -40,7 +40,6 @@ void foo(void)
40 OFFSET(TI_CPU, thread_info, cpu); 40 OFFSET(TI_CPU, thread_info, cpu);
41 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); 41 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count);
42 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); 42 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit);
43 OFFSET(TI_RESTART_BLOCK, thread_info, restart_block);
44 BLANK(); 43 BLANK();
45 44
46 /* offsets into register file storage */ 45 /* offsets into register file storage */
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c
index dc3d59de0870..336713ab4745 100644
--- a/arch/frv/kernel/signal.c
+++ b/arch/frv/kernel/signal.c
@@ -62,7 +62,7 @@ static int restore_sigcontext(struct sigcontext __user *sc, int *_gr8)
62 unsigned long tbr, psr; 62 unsigned long tbr, psr;
63 63
64 /* Always make any pending restarted system calls return -EINTR */ 64 /* Always make any pending restarted system calls return -EINTR */
65 current_thread_info()->restart_block.fn = do_no_restart_syscall; 65 current->restart_block.fn = do_no_restart_syscall;
66 66
67 tbr = user->i.tbr; 67 tbr = user->i.tbr;
68 psr = user->i.psr; 68 psr = user->i.psr;