diff options
Diffstat (limited to 'arch/m32r/include/asm')
| -rw-r--r-- | arch/m32r/include/asm/atomic.h | 2 | ||||
| -rw-r--r-- | arch/m32r/include/asm/scatterlist.h | 15 | ||||
| -rw-r--r-- | arch/m32r/include/asm/thread_info.h | 2 |
3 files changed, 3 insertions, 16 deletions
diff --git a/arch/m32r/include/asm/atomic.h b/arch/m32r/include/asm/atomic.h index 63f0cf0f50dd..d44a51e5271b 100644 --- a/arch/m32r/include/asm/atomic.h +++ b/arch/m32r/include/asm/atomic.h | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | * | 26 | * |
| 27 | * Atomically reads the value of @v. | 27 | * Atomically reads the value of @v. |
| 28 | */ | 28 | */ |
| 29 | #define atomic_read(v) ((v)->counter) | 29 | #define atomic_read(v) (*(volatile int *)&(v)->counter) |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * atomic_set - set atomic variable | 32 | * atomic_set - set atomic variable |
diff --git a/arch/m32r/include/asm/scatterlist.h b/arch/m32r/include/asm/scatterlist.h index 1ed372c73d0b..aeeddd8dac17 100644 --- a/arch/m32r/include/asm/scatterlist.h +++ b/arch/m32r/include/asm/scatterlist.h | |||
| @@ -1,20 +1,7 @@ | |||
| 1 | #ifndef _ASM_M32R_SCATTERLIST_H | 1 | #ifndef _ASM_M32R_SCATTERLIST_H |
| 2 | #define _ASM_M32R_SCATTERLIST_H | 2 | #define _ASM_M32R_SCATTERLIST_H |
| 3 | 3 | ||
| 4 | #include <asm/types.h> | 4 | #include <asm-generic/scatterlist.h> |
| 5 | |||
| 6 | struct scatterlist { | ||
| 7 | #ifdef CONFIG_DEBUG_SG | ||
| 8 | unsigned long sg_magic; | ||
| 9 | #endif | ||
| 10 | char * address; /* Location data is to be transferred to, NULL for | ||
| 11 | * highmem page */ | ||
| 12 | unsigned long page_link; | ||
| 13 | unsigned int offset;/* for highmem, page offset */ | ||
| 14 | |||
| 15 | dma_addr_t dma_address; | ||
| 16 | unsigned int length; | ||
| 17 | }; | ||
| 18 | 5 | ||
| 19 | #define ISA_DMA_THRESHOLD (0x1fffffff) | 6 | #define ISA_DMA_THRESHOLD (0x1fffffff) |
| 20 | 7 | ||
diff --git a/arch/m32r/include/asm/thread_info.h b/arch/m32r/include/asm/thread_info.h index ed240b6e8e77..71faff5bcc27 100644 --- a/arch/m32r/include/asm/thread_info.h +++ b/arch/m32r/include/asm/thread_info.h | |||
| @@ -142,7 +142,7 @@ static inline unsigned int get_thread_fault_code(void) | |||
| 142 | #define TIF_RESTORE_SIGMASK 8 /* restore signal mask in do_signal() */ | 142 | #define TIF_RESTORE_SIGMASK 8 /* restore signal mask in do_signal() */ |
| 143 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ | 143 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ |
| 144 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 144 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
| 145 | #define TIF_MEMDIE 18 /* OOM killer killed process */ | 145 | #define TIF_MEMDIE 18 /* is terminating due to OOM killer */ |
| 146 | #define TIF_FREEZE 19 /* is freezing for suspend */ | 146 | #define TIF_FREEZE 19 /* is freezing for suspend */ |
| 147 | 147 | ||
| 148 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 148 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
