15 Aug, 2010

1 commit


12 Jun, 2009

5 commits

  • A new architecture should only define a minimal set of system
    calls while still providing the full functionality. This version
    of unistd.h has gone through intensive review to make sure that
    by default it only enables syscalls that do not already have
    a more featureful replacement.

    It is modeled after the x86-64 version of unistd.h, which unifies
    the syscall number definition and the actual system call table
    in a single file, in order to keep them synchronized much more
    easily.

    This first version still keeps legacy system call definitions
    around, guarded by various #ifdefs, and with numbers larger
    than 1024. The idea behind this is to make it easier for
    new architectures to transition from a full list to the reduced
    set. In particular, the new microblaze architecture that should
    migrate to using the generic ABI headers can at least use an
    existing uClibc source tree without major rewrites during the
    conversion.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • These header files are typically copied from an existing architecture
    into any new one, slightly modified and then remain untouched until
    the end of time in the name of ABI stability.

    To make it easier for future architectures, provide a sane generic
    version here. In cases where multiple architectures already use
    identical code, I used the most common version. In cases like
    stat.h that are more or less broken everywhere, I provide a
    version that is meant to be ideal for new architectures.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • The ipc64 data structures were originally meant to
    be architecture specific so that each architecture
    could add their own optimizations for padding.

    In the end, most of them just copied the x86 version,
    and most got that wrong. UClibc expects the x86 anyway,
    so we might just declare that the default and get
    rid of the extra copies.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • This provides a reliable way for asm-generic/types.h and other
    files to find out if it is running on a 32 or 64 bit platform.

    We cannot use CONFIG_64BIT for this in headers that are included
    from user space because CONFIG symbols are not available there.
    We also cannot do it inside of asm/types.h because some headers
    need the word size but cannot include types.h.

    The solution is to introduce a new header
    that defines both __BITS_PER_LONG for user space and
    BITS_PER_LONG for usage in the kernel. The asm-generic
    version falls back to 32 bit unless the architecture overrides
    it, which I did for all 64 bit platforms.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • The existing asm-generic versions are incomplete and included
    by some architectures. New architectures should be able
    to use a generic version, so rename the existing files and
    change all users, which lets us add the new files.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

03 May, 2008

1 commit

  • This creates two generic files with common integer definitions; one
    where 64 bits is "long" (most 64-bit architectures) and one where 64
    bits is "long long" (all 32-bit architectures and x86-64.)

    Signed-off-by: H. Peter Anvin
    Cc: Anton Blanchard
    Cc: Ben Dooks
    Cc: Bryan Wu
    Cc: Chris Zankel
    Cc: David Howells
    Cc: David S. Miller
    Cc: Geert Uytterhoeven
    Cc: Grant Grundler
    Cc: H. Peter Anvin
    Cc: Haavard Skinnemoen
    Cc: Heiko Carstens
    Cc: Hirokazu Takata
    Cc: Ingo Molnar
    Cc: Ivan Kokshaysky
    Cc: Jesper Nilsson
    Cc: Koichi Yasutake
    Cc: Kyle McMartin
    Cc: Lennert Buytenhek
    Cc: Martin Schwidefsky
    Cc: Matthew Wilcox
    Cc: Mikael Starvik
    Cc: Paul Mackerras
    Cc: Paul Mundt
    Cc: Ralf Baechle
    Cc: Richard Henderson
    Cc: Roman Zippel
    Cc: Russell King
    Cc: Thomas Gleixner
    Cc: Tony Luck
    Cc: William L. Irwin
    Cc: Yoshinori Sato

    H. Peter Anvin
     

17 Oct, 2007

1 commit

  • All asm/ipc.h files do only #include .

    This patch therefore removes all include/asm-*/ipc.h files and moves the
    contents of include/asm-generic/ipc.h to include/linux/ipc.h.

    Signed-off-by: Adrian Bunk
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

11 May, 2007

1 commit

  • These files are almost all the same.

    This patch could be made even simpler if we don't mind POLLREMOVE turning
    up in a few architectures that didn't have it previously (which should be
    OK as POLLREMOVE is not used anywhere in the current tree).

    Signed-off-by: Stephen Rothwell
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     

08 Dec, 2006

1 commit


19 Sep, 2006

1 commit


18 Jun, 2006

1 commit