X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-m32r%2Fprocessor.h;h=09fd1813e780c36845d8266d65d980d2f66996e5;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=24caabea938cb17c9932dcfc33b4a4ad7f09bfb9;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-m32r/processor.h b/include/asm-m32r/processor.h index 24caabea9..09fd1813e 100644 --- a/include/asm-m32r/processor.h +++ b/include/asm-m32r/processor.h @@ -1,28 +1,23 @@ #ifndef _ASM_M32R_PROCESSOR_H #define _ASM_M32R_PROCESSOR_H -/* $Id$ */ - /* + * include/asm-m32r/processor.h + * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * - * Copyright (C) 2001 by Hiroyuki Kondo, Hirokazu Takata, and Hitoshi Yamamoto + * Copyright (C) 1994 Linus Torvalds + * Copyright (C) 2001 Hiroyuki Kondo, Hirokazu Takata, and Hitoshi Yamamoto + * Copyright (C) 2004 Hirokazu Takata */ -/* - * include/asm-m32r/processor.h - * - * Copyright (C) 1994 Linus Torvalds - */ #include #include #include #include /* pt_regs */ -#include - /* * Default implementation of macro that returns current * instruction pointer ("program counter"). @@ -53,7 +48,7 @@ extern struct cpuinfo_m32r boot_cpu_data; extern struct cpuinfo_m32r cpu_data[]; #define current_cpu_data cpu_data[smp_processor_id()] #else -#define cpu_data &boot_cpu_data +#define cpu_data (&boot_cpu_data) #define current_cpu_data boot_cpu_data #endif @@ -75,10 +70,12 @@ typedef struct { unsigned long seg; } mm_segment_t; +#define MAX_TRAPS 10 + struct debug_trap { int nr_trap; - unsigned long addr; - unsigned long insn; + unsigned long addr[MAX_TRAPS]; + unsigned long insn[MAX_TRAPS]; }; struct thread_struct { @@ -141,17 +138,6 @@ unsigned long get_wchan(struct task_struct *p); #define THREAD_SIZE (2*PAGE_SIZE) -/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ -static __inline__ void rep_nop(void) -{ - __asm__ __volatile__( - "nop \n\t" - "nop \n\t" - : - : - : "memory"); -} - -#define cpu_relax() rep_nop() +#define cpu_relax() barrier() #endif /* _ASM_M32R_PROCESSOR_H */