summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/syscall.c
AgeCommit message (Collapse)Author
2006-03-23Richard Sandiford writes:Mike Frysinger
This patch fixes a miscompilation of mmap() for Coldfire with gcc 4.x. The problem was that the syscall was being invoked before any part of the argument structure (buffer[]) had been initialised. The outcome of gcc PR 19341 is that volatile asms don't implicitly use or clobber memory, and that "memory" must be explicitly listed in the clobber list: http://gcc.gnu.org/PR19341 All syscalls can potentially use or clobber memory, so this patch adds a "memory" clobber to all the m68k syscall wrappers that I could find.
2006-01-29create a local prototype to shutup warningsMike Frysinger
2006-01-23fix building with gcc4Mike Frysinger
2006-01-15add syscall() by d1mag in Bug 164Mike Frysinger