cvs commit: src/sys/arm/arm trap.c

Olivier Houchard cognet at FreeBSD.org
Sat Oct 21 00:46:57 UTC 2006


cognet      2006-10-21 00:46:56 UTC

  FreeBSD src repository

  Modified files:
    sys/arm/arm          trap.c 
  Log:
  Ok I am an idiot. On 32 bits big-endian systems, it is needed to handle the
  syscalls using __syscall but only actually returning 32bits, such as mmap(),
  specially : they set the return value in td->td_retval[0], but the userland
  functions will expect this in r1, and not in r0 as it is normally done, as it
  is the LSB. So add a special case for all these syscalls (all except lseek,
  which truly returns 64bits).
  
  Many thanks to Peter Grehan for his patience while explaining me the issue.
  
  Revision  Changes    Path
  1.30      +17 -2     src/sys/arm/arm/trap.c


More information about the cvs-src mailing list