Back to index

glibc  2.9
Defines
sysdep.h File Reference
#include <sysdeps/unix/arm/sysdep.h>
#include <dl-sysdep.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SWI_BASE   (0x900000)
#define SYS_ify(syscall_name)   (__NR_##syscall_name)
#define HWCAP_ARM_SWP   1
#define HWCAP_ARM_HALF   2
#define HWCAP_ARM_THUMB   4
#define HWCAP_ARM_26BIT   8
#define HWCAP_ARM_FAST_MULT   16
#define HWCAP_ARM_FPA   32
#define HWCAP_ARM_VFP   64
#define HWCAP_ARM_EDSP   128
#define HWCAP_ARM_JAVA   256
#define HWCAP_ARM_IWMMXT   512
#define INLINE_SYSCALL(name, nr, args...)
#define INTERNAL_SYSCALL_DECL(err)   do { } while (0)
#define INTERNAL_SYSCALL_RAW(name, err, nr, args...)
#define INTERNAL_SYSCALL(name, err, nr, args...)   INTERNAL_SYSCALL_RAW(SYS_ify(name), err, nr, args)
#define INTERNAL_SYSCALL_ARM(name, err, nr, args...)   INTERNAL_SYSCALL_RAW(__ARM_NR_##name, err, nr, args)
#define INTERNAL_SYSCALL_ERROR_P(val, err)   ((unsigned int) (val) >= 0xfffff001u)
#define INTERNAL_SYSCALL_ERRNO(val, err)   (-(val))
#define LOAD_ARGS_0()
#define ASM_ARGS_0
#define LOAD_ARGS_1(a1)
#define ASM_ARGS_1   ASM_ARGS_0, "r" (_a1)
#define LOAD_ARGS_2(a1, a2)
#define ASM_ARGS_2   ASM_ARGS_1, "r" (_a2)
#define LOAD_ARGS_3(a1, a2, a3)
#define ASM_ARGS_3   ASM_ARGS_2, "r" (_a3)
#define LOAD_ARGS_4(a1, a2, a3, a4)
#define ASM_ARGS_4   ASM_ARGS_3, "r" (_a4)
#define LOAD_ARGS_5(a1, a2, a3, a4, a5)
#define ASM_ARGS_5   ASM_ARGS_4, "r" (_v1)
#define LOAD_ARGS_6(a1, a2, a3, a4, a5, a6)
#define ASM_ARGS_6   ASM_ARGS_5, "r" (_v2)
#define LOAD_ARGS_7(a1, a2, a3, a4, a5, a6, a7)
#define ASM_ARGS_7   ASM_ARGS_6, "r" (_v3)
#define INTERNAL_SYSCALL_NCS(number, err, nr, args...)   INTERNAL_SYSCALL_NCS_##nr (number, err, args)
#define INTERNAL_SYSCALL_NCS_0(number, err, args...)   INTERNAL_SYSCALL (syscall, err, 1, number, args)
#define INTERNAL_SYSCALL_NCS_1(number, err, args...)   INTERNAL_SYSCALL (syscall, err, 2, number, args)
#define INTERNAL_SYSCALL_NCS_2(number, err, args...)   INTERNAL_SYSCALL (syscall, err, 3, number, args)
#define INTERNAL_SYSCALL_NCS_3(number, err, args...)   INTERNAL_SYSCALL (syscall, err, 4, number, args)
#define INTERNAL_SYSCALL_NCS_4(number, err, args...)   INTERNAL_SYSCALL (syscall, err, 5, number, args)
#define INTERNAL_SYSCALL_NCS_5(number, err, args...)   INTERNAL_SYSCALL (syscall, err, 6, number, args)
#define PTR_MANGLE(var)   (void) (var)
#define PTR_DEMANGLE(var)   (void) (var)

Define Documentation

#define ASM_ARGS_0

Definition at line 239 of file sysdep.h.

#define ASM_ARGS_1   ASM_ARGS_0, "r" (_a1)

Definition at line 243 of file sysdep.h.

#define ASM_ARGS_2   ASM_ARGS_1, "r" (_a2)

Definition at line 247 of file sysdep.h.

#define ASM_ARGS_3   ASM_ARGS_2, "r" (_a3)

Definition at line 251 of file sysdep.h.

#define ASM_ARGS_4   ASM_ARGS_3, "r" (_a4)

Definition at line 255 of file sysdep.h.

#define ASM_ARGS_5   ASM_ARGS_4, "r" (_v1)

Definition at line 259 of file sysdep.h.

#define ASM_ARGS_6   ASM_ARGS_5, "r" (_v2)

Definition at line 263 of file sysdep.h.

#define ASM_ARGS_7   ASM_ARGS_6, "r" (_v3)

Definition at line 267 of file sysdep.h.

#define HWCAP_ARM_26BIT   8

Definition at line 44 of file sysdep.h.

#define HWCAP_ARM_EDSP   128

Definition at line 48 of file sysdep.h.

#define HWCAP_ARM_FAST_MULT   16

Definition at line 45 of file sysdep.h.

#define HWCAP_ARM_FPA   32

Definition at line 46 of file sysdep.h.

#define HWCAP_ARM_HALF   2

Definition at line 42 of file sysdep.h.

#define HWCAP_ARM_IWMMXT   512

Definition at line 50 of file sysdep.h.

#define HWCAP_ARM_JAVA   256

Definition at line 49 of file sysdep.h.

#define HWCAP_ARM_SWP   1

Definition at line 41 of file sysdep.h.

#define HWCAP_ARM_THUMB   4

Definition at line 43 of file sysdep.h.

#define HWCAP_ARM_VFP   64

Definition at line 47 of file sysdep.h.

#define INLINE_SYSCALL (   name,
  nr,
  args... 
)
Value:
({ unsigned int _sys_result = INTERNAL_SYSCALL (name, , nr, args);    \
     if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (_sys_result, ), 0))     \
       {                                                       \
        __set_errno (INTERNAL_SYSCALL_ERRNO (_sys_result, ));         \
        _sys_result = (unsigned int) -1;                       \
       }                                                       \
     (int) _sys_result; })

Definition at line 197 of file sysdep.h.

#define INTERNAL_SYSCALL (   name,
  err,
  nr,
  args... 
)    INTERNAL_SYSCALL_RAW(SYS_ify(name), err, nr, args)

Definition at line 224 of file sysdep.h.

#define INTERNAL_SYSCALL_ARM (   name,
  err,
  nr,
  args... 
)    INTERNAL_SYSCALL_RAW(__ARM_NR_##name, err, nr, args)

Definition at line 228 of file sysdep.h.

#define INTERNAL_SYSCALL_DECL (   err)    do { } while (0)

Definition at line 207 of file sysdep.h.

#define INTERNAL_SYSCALL_ERRNO (   val,
  err 
)    (-(val))

Definition at line 236 of file sysdep.h.

#define INTERNAL_SYSCALL_ERROR_P (   val,
  err 
)    ((unsigned int) (val) >= 0xfffff001u)

Definition at line 232 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS (   number,
  err,
  nr,
  args... 
)    INTERNAL_SYSCALL_NCS_##nr (number, err, args)

Definition at line 271 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS_0 (   number,
  err,
  args... 
)    INTERNAL_SYSCALL (syscall, err, 1, number, args)

Definition at line 274 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS_1 (   number,
  err,
  args... 
)    INTERNAL_SYSCALL (syscall, err, 2, number, args)

Definition at line 276 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS_2 (   number,
  err,
  args... 
)    INTERNAL_SYSCALL (syscall, err, 3, number, args)

Definition at line 278 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS_3 (   number,
  err,
  args... 
)    INTERNAL_SYSCALL (syscall, err, 4, number, args)

Definition at line 280 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS_4 (   number,
  err,
  args... 
)    INTERNAL_SYSCALL (syscall, err, 5, number, args)

Definition at line 282 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS_5 (   number,
  err,
  args... 
)    INTERNAL_SYSCALL (syscall, err, 6, number, args)

Definition at line 284 of file sysdep.h.

#define INTERNAL_SYSCALL_RAW (   name,
  err,
  nr,
  args... 
)
Value:
({ unsigned int _sys_result;                                   \
     {                                                  \
       register int _a1 asm ("a1");                            \
       LOAD_ARGS_##nr (args)                                   \
       asm volatile ("swi   %1     @ syscall " #name    \
                   : "=r" (_a1)                         \
                   : "i" (name) ASM_ARGS_##nr                  \
                   : "memory");                         \
       _sys_result = _a1;                               \
     }                                                  \
     (int) _sys_result; })

Definition at line 210 of file sysdep.h.

#define LOAD_ARGS_0 ( )

Definition at line 238 of file sysdep.h.

#define LOAD_ARGS_1 (   a1)
Value:
_a1 = (int) (a1);                         \
  LOAD_ARGS_0 ()

Definition at line 240 of file sysdep.h.

#define LOAD_ARGS_2 (   a1,
  a2 
)
Value:
register int _a2 asm ("a2") = (int) (a2); \
  LOAD_ARGS_1 (a1)

Definition at line 244 of file sysdep.h.

#define LOAD_ARGS_3 (   a1,
  a2,
  a3 
)
Value:
register int _a3 asm ("a3") = (int) (a3); \
  LOAD_ARGS_2 (a1, a2)

Definition at line 248 of file sysdep.h.

#define LOAD_ARGS_4 (   a1,
  a2,
  a3,
  a4 
)
Value:
register int _a4 asm ("a4") = (int) (a4); \
  LOAD_ARGS_3 (a1, a2, a3)

Definition at line 252 of file sysdep.h.

#define LOAD_ARGS_5 (   a1,
  a2,
  a3,
  a4,
  a5 
)
Value:
register int _v1 asm ("v1") = (int) (a5); \
  LOAD_ARGS_4 (a1, a2, a3, a4)

Definition at line 256 of file sysdep.h.

#define LOAD_ARGS_6 (   a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)
Value:
register int _v2 asm ("v2") = (int) (a6); \
  LOAD_ARGS_5 (a1, a2, a3, a4, a5)

Definition at line 260 of file sysdep.h.

#define LOAD_ARGS_7 (   a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)
Value:
register int _v3 asm ("v3") = (int) (a7); \
  LOAD_ARGS_6 (a1, a2, a3, a4, a5, a6)

Definition at line 264 of file sysdep.h.

#define PTR_DEMANGLE (   var)    (void) (var)

Definition at line 291 of file sysdep.h.

#define PTR_MANGLE (   var)    (void) (var)

Definition at line 290 of file sysdep.h.

#define SWI_BASE   (0x900000)

Definition at line 36 of file sysdep.h.

#define SYS_ify (   syscall_name)    (__NR_##syscall_name)

Definition at line 37 of file sysdep.h.