Talk:Sample code/C/gpregs

Workaround for an error I was having
When I ran this code, it failed with the error message. (This doesn't actually indicate a success; it means that mmap failed but didn't return an error code.) This seems to be due to the workaround conditioned on __ARM_EABI__, which had the wrong sense for me for some reason; reversing the sense of the condition by changing #ifdef to #ifndef worked for me. (I wouldn't recommend doing this in general because it would usually fail, but if anyone has the same problem as me, this might fix it for them.) Ais523 08:45, 11 February 2008 (PST)