mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
This commit is contained in:
parent
6f54a86360
commit
0b6647f2e9
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ static struct ep_type endpoints[USB_NUM_ENDPOINTS][2];
|
|||
static union {
|
||||
struct usb_ctrlrequest header; /* 8 bytes */
|
||||
unsigned char payload[64];
|
||||
} _ep0_setup_pkt USB_DEVBSS_ATTR;
|
||||
} _ep0_setup_pkt USB_DEVBSS_ATTR __attribute__((aligned(32)));
|
||||
|
||||
static struct usb_ctrlrequest *ep0_setup_pkt = UNCACHED_ADDR(&_ep0_setup_pkt.header);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue