Back to index

glibc  2.9
Defines
sysdep.h File Reference
#include <sysdeps/mach/sysdep.h>
#include <mach/alpha/asm.h>

Go to the source code of this file.

Defines

#define MOVE(x, y)   mov x, y
#define LOSE   asm volatile ("call_pal 0") /* halt */
#define START_MACHDEP
#define START_ARGS   char **sparg
#define SNARF_ARGS(argc, argv, envp)   (envp = &(argv = &sparg[1])[(argc = *(int *) sparg) + 1])
#define CALL_WITH_SP(fn, sp)
#define STACK_GROWTH_DOWN
#define RETURN_TO(sp, pc, retval)
#define ALIGN   3
#define ENTRY(name)
#define at   28
#define AT   $28
#define fp   s6

Define Documentation

#define ALIGN   3

Definition at line 43 of file sysdep.h.

#define at   28

Definition at line 57 of file sysdep.h.

#define AT   $28

Definition at line 58 of file sysdep.h.

#define CALL_WITH_SP (   fn,
  sp 
)
Value:
({ register long int __fn = (long int) fn, __sp = (long int) sp; \
     asm volatile ("mov %0,$30; jmp $31, (%1); ldgp $29, 0(%1)" \
                 : : "r" (__sp), "r" (__fn)); })

Definition at line 32 of file sysdep.h.

#define ENTRY (   name)
Value:
.globl name;                              \
  .align 3;                               \
  .ent name, 0;                                  \
  name##:                                 \
  .frame sp, 0, ra

Definition at line 48 of file sysdep.h.

#define fp   s6

Definition at line 59 of file sysdep.h.

#define LOSE   asm volatile ("call_pal 0") /* halt */

Definition at line 21 of file sysdep.h.

#define MOVE (   x,
  y 
)    mov x, y

Definition at line 19 of file sysdep.h.

#define RETURN_TO (   sp,
  pc,
  retval 
)
Value:
asm volatile ("mov %0,$30; jmp $31, (%1); mov %2,$0" \
              : : "r" (sp), "r" (pc), "r" ((long int) (retval)));

Definition at line 39 of file sysdep.h.

#define SNARF_ARGS (   argc,
  argv,
  envp 
)    (envp = &(argv = &sparg[1])[(argc = *(int *) sparg) + 1])

Definition at line 29 of file sysdep.h.

Definition at line 37 of file sysdep.h.

#define START_ARGS   char **sparg

Definition at line 28 of file sysdep.h.

#define START_MACHDEP
Value:
asm ("_start: mov    $30, $16\n" /* Put initial SP in a0.  */        \
       "      br     $27, 1f\n" /* Load GP from PC.  */              \
       "1:    ldgp   $29, 0($27)\n"                                         \
       "      jmp    $26, _start0");      /* Jump to _start0; don't return.  */

Definition at line 23 of file sysdep.h.