Skip to content

Commit

Permalink
Fixed bug 1388 - Debian patch: ARM support
Browse files Browse the repository at this point in the history
manuel.montezelo@gmail.com 2012-01-20 12:26:38 PST

1) First Debian bug report: "bad aligned access considerations on ARM"

http://bugs.debian.org/212570

"ARM CPUs like my iPaq's fail on unaligned reads as well. See the following
code for instance: [...] Moreover, AFAIK unaligned reads are always decomposed
into two aligned reads on modern CPUs. I think it would be wise to drop them
completely and always set SDL_DATA_ALIGNED to 1."

The accompanying patch "arm.patch" is trivial to understand and apply.
  • Loading branch information
slouken committed Jan 21, 2012
1 parent a11a6ca commit 5841cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDL_net.h
Expand Up @@ -354,7 +354,7 @@ extern no_parse_DECLSPEC char * SDLCALL SDLNet_GetError(void);
/* Inline macro functions to read/write network data */

/* Warning, some systems have data access alignment restrictions */
#if defined(sparc) || defined(mips)
#if defined(sparc) || defined(mips) || defined(__arm__)
#define SDL_DATA_ALIGNED 1
#endif
#ifndef SDL_DATA_ALIGNED
Expand Down

0 comments on commit 5841cee

Please sign in to comment.