Back to index

glibc  2.9
Defines
sysdep.h File Reference
#include <sysdeps/mach/sysdep.h>
#include <sysdeps/unix/powerpc/sysdep.h>

Go to the source code of this file.

Defines

#define START_ARGS   char **sparg
#define SNARF_ARGS(argc, argv, envp)
#define CALL_WITH_SP(fn, sp)
#define STACK_GROWTH_DOWN
#define RETURN_TO(sp, pc, retval)
#define _MACH_MACHINE_ASM_H   1 /* Kludge to avoid bad Darwin header file. */

Define Documentation

#define _MACH_MACHINE_ASM_H   1 /* Kludge to avoid bad Darwin header file. */

Definition at line 45 of file sysdep.h.

#define CALL_WITH_SP (   fn,
  sp 
)
Value:
do {                                                 \
    register long __sp = (long) sp, __fn = (long) fn; \
    asm volatile ("mr 1, %0; mtlr %1; blr"            \
                : : "r" (__sp), "r" (__fn));        \
  } while (0)

Definition at line 31 of file sysdep.h.

#define RETURN_TO (   sp,
  pc,
  retval 
)
Value:
asm volatile ("mr 1, %0; mtctr %1; mr 3, %2; bctr" \
                 : : "r" (sp), "r" (pc), "r" (retval))

Definition at line 40 of file sysdep.h.

#define SNARF_ARGS (   argc,
  argv,
  envp 
)
Value:
do {                               \
    argv = &sparg[1];                \
    argc = *(int *)sparg;            \
    envp = &argv[argc + 1];          \
  } while (0)

Definition at line 24 of file sysdep.h.

Definition at line 38 of file sysdep.h.

#define START_ARGS   char **sparg

Definition at line 23 of file sysdep.h.