Changeset 14865


Ignore:
Timestamp:
Jul 8, 2011, 4:32:41 PM (8 years ago)
Author:
gb
Message:

A long time ago (2001), some PPC Linux distribution's C libraries
didn't define madvise(). It's probably time to stop doing it for
them.

(A bug that affected the LinuxPPC64 port went away after this change,
but it's not clear why; then again, that may have to do with the
PowerOpen? calling sequence and the TOC.)

If anyone's still running YDL 2.0 ... upgrade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/ppc-asmutils.s

    r13337 r14865  
    441441_endfn
    442442
    443 /* Some versions of Linux don't implement madvise().  That's */
    444 /* not catastrophic, but some versions of glibc will make a */
    445 /* big deal out of that at link time.  This is here to try */
    446 /* to fool those versions of glibc. */
    447 
    448         __ifdef(`LINUX')
    449         .globl set_errno
    450 _exportfn(C(madvise))
    451         __(li r0,205)   /* _NR_madvise; see /usr/include/asm/unistd.h */
    452         __(sc)
    453         __(bnslr)
    454         __(b set_errno)
    455 _endfn
    456         __endif
    457443
    458444        _endfile
Note: See TracChangeset for help on using the changeset viewer.