~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/emulator/hipe/hipe_sparc_asm.h

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id$
2
 
 * hipe_sparc_asm.h
3
 
 */
4
 
 
5
 
#define ASM
6
 
#include "hipe_mode_switch.h"
7
 
#include "hipe_sparc_registers.h"
8
 
 
9
1
/*
10
 
 * Process struct offsets and some constants.
 
2
 * $Id$
11
3
 */
12
 
#include "hipe_literals.h"
 
4
#ifndef HIPE_SPARC_ASM_H
 
5
#define HIPE_SPARC_ASM_H
 
6
 
 
7
#define P               %i0
 
8
#define HP              %i1
 
9
#define HP_LIMIT        %i2
 
10
#define NSP             %i3
 
11
#define NSP_LIMIT       %i4
 
12
#define FCALLS          %i5
 
13
 
 
14
#define RA              %o7
 
15
 
 
16
#define TEMP0           %g1
 
17
#define TEMP1           %l7     /* Should be local registers so that */
 
18
#define TEMP2           %l6     /*   they are saved over C-calls.    */
 
19
#define TEMP3           %l5     /*                                   */
 
20
 
 
21
#define ARG0            %o1
 
22
#define ARG1            %o2
 
23
#define ARG2            %o3
 
24
#define ARG3            %o4
 
25
#define ARG4            %o5
 
26
#define ARG5            %o0     /* also retval */
 
27
 
 
28
#define SPARC_NR_ARG_REGS 6     /* Stored in p->def_arg_reg[]. */
 
29
 
 
30
/* Guaranteed min stack size for leaf functions on SPARC. */
 
31
#define SPARC_LEAF_WORDS 20
 
32
 
 
33
#endif /* HIPE_SPARC_ASM_H */