| Submitter | Rogan Dawes |
|---|---|
| Date | March 18, 2011, 8:04 a.m. |
| Message ID | <1300435500-4909-4-git-send-email-rogan@dawes.za.net> |
| Download | mbox | patch |
| Permalink | /patch/87491/ |
| State | Not Applicable |
| Headers | show |
Comments
Patch
diff --git a/lib/display_options.c b/lib/display_options.c index 20319e6..c544777 100644 --- a/lib/display_options.c +++ b/lib/display_options.c @@ -101,7 +101,8 @@ void print_size(unsigned long long size, const char *s) #define DEFAULT_LINE_LENGTH_BYTES (16) int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen) { - uint8_t linebuf[MAX_LINE_LENGTH_BYTES + 1]; + uint8_t linebuf[MAX_LINE_LENGTH_BYTES + 1] + __attribute__((__aligned__(sizeof(uint32_t)))); uint32_t *uip = (void*)linebuf; uint16_t *usp = (void*)linebuf; uint8_t *ucp = (void*)linebuf;