diff options
Diffstat (limited to 'arch/h8300')
-rw-r--r-- | arch/h8300/Kconfig.cpu | 3 | ||||
-rw-r--r-- | arch/h8300/kernel/signal.c | 4 | ||||
-rw-r--r-- | arch/h8300/platform/h8300h/ptrace_h8300h.c | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/arch/h8300/Kconfig.cpu b/arch/h8300/Kconfig.cpu index d9dd62a565a9..a380167a13cf 100644 --- a/arch/h8300/Kconfig.cpu +++ b/arch/h8300/Kconfig.cpu | |||
@@ -180,4 +180,7 @@ config CPU_H8S | |||
180 | config PREEMPT | 180 | config PREEMPT |
181 | bool "Preemptible Kernel" | 181 | bool "Preemptible Kernel" |
182 | default n | 182 | default n |
183 | |||
184 | source "mm/Kconfig" | ||
185 | |||
183 | endmenu | 186 | endmenu |
diff --git a/arch/h8300/kernel/signal.c b/arch/h8300/kernel/signal.c index a4799d633ef4..5aab87eae1f9 100644 --- a/arch/h8300/kernel/signal.c +++ b/arch/h8300/kernel/signal.c | |||
@@ -517,10 +517,8 @@ asmlinkage int do_signal(struct pt_regs *regs, sigset_t *oldset) | |||
517 | if ((regs->ccr & 0x10)) | 517 | if ((regs->ccr & 0x10)) |
518 | return 1; | 518 | return 1; |
519 | 519 | ||
520 | if (current->flags & PF_FREEZE) { | 520 | if (try_to_freeze()) |
521 | refrigerator(0); | ||
522 | goto no_signal; | 521 | goto no_signal; |
523 | } | ||
524 | 522 | ||
525 | current->thread.esp0 = (unsigned long) regs; | 523 | current->thread.esp0 = (unsigned long) regs; |
526 | 524 | ||
diff --git a/arch/h8300/platform/h8300h/ptrace_h8300h.c b/arch/h8300/platform/h8300h/ptrace_h8300h.c index 18e51a7167d3..6ac93c05a1ae 100644 --- a/arch/h8300/platform/h8300h/ptrace_h8300h.c +++ b/arch/h8300/platform/h8300h/ptrace_h8300h.c | |||
@@ -245,12 +245,12 @@ static unsigned short *getnextpc(struct task_struct *child, unsigned short *pc) | |||
245 | addr = h8300_get_reg(child, regno-1+PT_ER1); | 245 | addr = h8300_get_reg(child, regno-1+PT_ER1); |
246 | return (unsigned short *)addr; | 246 | return (unsigned short *)addr; |
247 | case relb: | 247 | case relb: |
248 | if ((inst = 0x55) || isbranch(child,inst & 0x0f)) | 248 | if (inst == 0x55 || isbranch(child,inst & 0x0f)) |
249 | pc = (unsigned short *)((unsigned long)pc + | 249 | pc = (unsigned short *)((unsigned long)pc + |
250 | ((signed char)(*fetch_p))); | 250 | ((signed char)(*fetch_p))); |
251 | return pc+1; /* skip myself */ | 251 | return pc+1; /* skip myself */ |
252 | case relw: | 252 | case relw: |
253 | if ((inst = 0x5c) || isbranch(child,(*fetch_p & 0xf0) >> 4)) | 253 | if (inst == 0x5c || isbranch(child,(*fetch_p & 0xf0) >> 4)) |
254 | pc = (unsigned short *)((unsigned long)pc + | 254 | pc = (unsigned short *)((unsigned long)pc + |
255 | ((signed short)(*(pc+1)))); | 255 | ((signed short)(*(pc+1)))); |
256 | return pc+2; /* skip myself */ | 256 | return pc+2; /* skip myself */ |