--- zzzz-none-000/linux-2.6.13.1/include/asm-arm/processor.h 2005-09-10 02:42:58.000000000 +0000 +++ ohio-7170-487/linux-2.6.13.1/include/asm-arm/processor.h 2006-09-15 07:48:04.000000000 +0000 @@ -93,8 +93,14 @@ * Prefetching support - only ARMv5. */ #if __LINUX_ARM_ARCH__ >= 5 - #define ARCH_HAS_PREFETCH + +#if CONFIG_DEBUG_KERNEL /*--- hschillert der GDB mag pld nicht ---*/ +#define prefetch(ptr) \ + ({ \ + __asm__ __volatile__( "nop" ); \ + }) +#else /*--- #if CONFIG_DEBUG_KERNEL ---*/ #define prefetch(ptr) \ ({ \ __asm__ __volatile__( \ @@ -103,13 +109,13 @@ : "o" (*(char *)(ptr)) \ : "cc"); \ }) +#endif /*--- #else ---*/ /*--- #if CONFIG_DEBUG_KERNEL ---*/ #define ARCH_HAS_PREFETCHW #define prefetchw(ptr) prefetch(ptr) #define ARCH_HAS_SPINLOCK_PREFETCH #define spin_lock_prefetch(x) do { } while (0) - #endif #endif