diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/include/asm/system.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/system.h b/arch/microblaze/include/asm/system.h index 59efb3fef957..48c4f0335e3f 100644 --- a/arch/microblaze/include/asm/system.h +++ b/arch/microblaze/include/asm/system.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <asm/registers.h> | 12 | #include <asm/registers.h> |
13 | #include <asm/setup.h> | 13 | #include <asm/setup.h> |
14 | #include <asm/irqflags.h> | 14 | #include <asm/irqflags.h> |
15 | #include <asm/cache.h> | ||
15 | 16 | ||
16 | #include <asm-generic/cmpxchg.h> | 17 | #include <asm-generic/cmpxchg.h> |
17 | #include <asm-generic/cmpxchg-local.h> | 18 | #include <asm-generic/cmpxchg-local.h> |
@@ -96,4 +97,14 @@ extern struct dentry *of_debugfs_root; | |||
96 | 97 | ||
97 | #define arch_align_stack(x) (x) | 98 | #define arch_align_stack(x) (x) |
98 | 99 | ||
100 | /* | ||
101 | * MicroBlaze doesn't handle unaligned accesses in hardware. | ||
102 | * | ||
103 | * Based on this we force the IP header alignment in network drivers. | ||
104 | * We also modify NET_SKB_PAD to be a cacheline in size, thus maintaining | ||
105 | * cacheline alignment of buffers. | ||
106 | */ | ||
107 | #define NET_IP_ALIGN 2 | ||
108 | #define NET_SKB_PAD L1_CACHE_BYTES | ||
109 | |||
99 | #endif /* _ASM_MICROBLAZE_SYSTEM_H */ | 110 | #endif /* _ASM_MICROBLAZE_SYSTEM_H */ |