diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-14 12:14:42 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-14 14:51:13 +0100 |
commit | 0b6647f2e9e5d21e80736eab7af33acecba28f38 (patch) | |
tree | 1e64dda7e0ed2cd3fc18739ee64730881ee3a4f0 | |
parent | 6f54a86360acd3d5b193a92637eadf6df7246bf3 (diff) | |
download | rockbox-0b6647f2e9e5d21e80736eab7af33acecba28f38.tar.gz rockbox-0b6647f2e9e5d21e80736eab7af33acecba28f38.zip |
usb-s3c6400x: set alignment for ep0_setup_pkt
Align USB_DEVBSS buffers to 32 (as other USB drivers are doing), this
could solve rare random memory corruption issues on iPod Classic.
Change-Id: I86a28e10415eabedab7bf4a534530900284f81e5
-rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c index 5fcbde9fd6..42d56b9bf9 100644 --- a/firmware/target/arm/usb-s3c6400x.c +++ b/firmware/target/arm/usb-s3c6400x.c | |||
@@ -97,7 +97,7 @@ static struct ep_type endpoints[USB_NUM_ENDPOINTS][2]; | |||
97 | static union { | 97 | static union { |
98 | struct usb_ctrlrequest header; /* 8 bytes */ | 98 | struct usb_ctrlrequest header; /* 8 bytes */ |
99 | unsigned char payload[64]; | 99 | unsigned char payload[64]; |
100 | } _ep0_setup_pkt USB_DEVBSS_ATTR; | 100 | } _ep0_setup_pkt USB_DEVBSS_ATTR __attribute__((aligned(32))); |
101 | 101 | ||
102 | static struct usb_ctrlrequest *ep0_setup_pkt = UNCACHED_ADDR(&_ep0_setup_pkt.header); | 102 | static struct usb_ctrlrequest *ep0_setup_pkt = UNCACHED_ADDR(&_ep0_setup_pkt.header); |
103 | 103 | ||