aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-28 21:30:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-28 21:30:24 +0000
commit20668162438fe94b9cb7b6fb4f6bb83b8d294181 (patch)
tree63a68ed499651be836f7c787cb3e673aa80cd7eb /target/linux
parent52db048af389d2e15188c0107b9cf32a3b44e1f2 (diff)
downloadmaster-187ad058-20668162438fe94b9cb7b6fb4f6bb83b8d294181.tar.gz
master-187ad058-20668162438fe94b9cb7b6fb4f6bb83b8d294181.tar.bz2
master-187ad058-20668162438fe94b9cb7b6fb4f6bb83b8d294181.zip
ar71xx: change the unaligned access hack to assume an alignment of 2 bytes, slightly improves performance and code size
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34912 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/patches-3.6/902-unaligned_access_hacks.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/patches-3.6/902-unaligned_access_hacks.patch b/target/linux/ar71xx/patches-3.6/902-unaligned_access_hacks.patch
index 921cf194d6..557ab14d10 100644
--- a/target/linux/ar71xx/patches-3.6/902-unaligned_access_hacks.patch
+++ b/target/linux/ar71xx/patches-3.6/902-unaligned_access_hacks.patch
@@ -57,7 +57,7 @@
__be32 daddr;
/*The options start here. */
-};
-+} __packed;
++} __packed __attribute__((aligned(2)));
#ifdef __KERNEL__
#include <linux/skbuff.h>
@@ -68,7 +68,7 @@
struct in6_addr saddr;
struct in6_addr daddr;
-};
-+} __packed;
++} __packed __attribute__((aligned(2)));
#ifdef __KERNEL__
/*
@@ -79,7 +79,7 @@
__sum16 check;
__be16 urg_ptr;
-};
-+} __packed;
++} __packed __attribute__((aligned(2)));
/*
* The union cast uses a gcc extension to avoid aliasing problems
@@ -90,7 +90,7 @@
__be16 len;
__sum16 check;
-};
-+} __packed;
++} __packed __attribute__((aligned(2)));
/* UDP socket options */
#define UDP_CORK 1 /* Never send partially complete segments */