Back to index

glibc  2.9
Defines
sysdep.h File Reference
#include <dl-sysdep.h>
#include <tls.h>
#include <sysdeps/mach/sysdep.h>
#include <sysdeps/unix/i386/sysdep.h>

Go to the source code of this file.

Defines

#define LOSE   asm volatile ("hlt")
#define SNARF_ARGS(entry_sp, argc, argv, envp)
#define CALL_WITH_SP(fn, info, sp)
#define RETURN_TO(sp, pc, retval)
#define STACK_GROWTH_DOWN

Define Documentation

#define CALL_WITH_SP (   fn,
  info,
  sp 
)
Value:
do {                                                                 \
       void **ptr = (void **) sp;                                    \
       *--(__typeof (info) *) ptr = info;                            \
       ptr[-1] = ptr;                                                       \
       --ptr;                                                        \
    asm volatile ("movl %0, %%esp; call %1" : :                      \
                "g" (ptr), "m" (*(long int *) (fn)) : "%esp");              \
  } while (0)

Definition at line 41 of file sysdep.h.

#define LOSE   asm volatile ("hlt")

Definition at line 25 of file sysdep.h.

#define RETURN_TO (   sp,
  pc,
  retval 
)
Value:
asm volatile ("movl %0, %%esp; jmp %*%1 # %2" \
              : : "g" (sp), "r" (pc), "a" (retval))

Definition at line 51 of file sysdep.h.

#define SNARF_ARGS (   entry_sp,
  argc,
  argv,
  envp 
)
Value:
do                                                                   \
    {                                                                \
      register char **p;                                             \
      argc = (int) *entry_sp;                                               \
      argv = (char **) (entry_sp + 1);                                      \
      p = argv;                                                             \
      while (*p++ != NULL)                                           \
       ;                                                             \
      if (p >= (char **) argv[0])                                    \
       --p;                                                          \
      envp = p;                                                      \
    } while (0)

Definition at line 27 of file sysdep.h.

Definition at line 56 of file sysdep.h.