Commit a63ab460 authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Linus Torvalds

[PATCH] alpha: regdef.h [4/10]

Historically, assembly routines included libc header <alpha/regdef.h>
for OSF/1 register names. With the new kernel build system
it doesn't work anymore. Make our own copy in <include/asm>.
parent 4d6642d3
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <asm/errno.h> #include <asm/errno.h>
#include <alpha/regdef.h> #include <asm/regdef.h>
/* Allow an exception for an insn; exit if we get one. */ /* Allow an exception for an insn; exit if we get one. */
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* Try not to change the actual algorithm if possible for consistency. * Try not to change the actual algorithm if possible for consistency.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noat .set noat
.set noreorder .set noreorder
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* Try not to change the actual algorithm if possible for consistency. * Try not to change the actual algorithm if possible for consistency.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noat .set noat
.set noreorder .set noreorder
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* Try not to change the actual algorithm if possible for consistency. * Try not to change the actual algorithm if possible for consistency.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noreorder .set noreorder
.set noat .set noat
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Try not to change the actual algorithm if possible for consistency. * Try not to change the actual algorithm if possible for consistency.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
/* Allow an exception for an insn; exit if we get one. */ /* Allow an exception for an insn; exit if we get one. */
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noreorder .set noreorder
.set noat .set noat
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* string, or null if it is not found. * string, or null if it is not found.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noreorder .set noreorder
.set noat .set noat
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* boundary when doing so. * boundary when doing so.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
/* Allow an exception for an insn; exit if we get one. */ /* Allow an exception for an insn; exit if we get one. */
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <asm/errno.h> #include <asm/errno.h>
#include <alpha/regdef.h> #include <asm/regdef.h>
/* Allow an exception for an insn; exit if we get one. */ /* Allow an exception for an insn; exit if we get one. */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* within a null-terminated string, or null if it is not found. * within a null-terminated string, or null if it is not found.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noreorder .set noreorder
.set noat .set noat
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* Furthermore, v0, a3-a5, t11, and t12 are untouched. * Furthermore, v0, a3-a5, t11, and t12 are untouched.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noat .set noat
.set noreorder .set noreorder
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Furthermore, v0, a3-a5, t11, t12, and $at are untouched. * Furthermore, v0, a3-a5, t11, t12, and $at are untouched.
*/ */
#include <alpha/regdef.h> #include <asm/regdef.h>
.set noat .set noat
.set noreorder .set noreorder
......
#ifndef __alpha_regdef_h__
#define __alpha_regdef_h__
#define v0 $0 /* function return value */
#define t0 $1 /* temporary registers (caller-saved) */
#define t1 $2
#define t2 $3
#define t3 $4
#define t4 $5
#define t5 $6
#define t6 $7
#define t7 $8
#define s0 $9 /* saved-registers (callee-saved registers) */
#define s1 $10
#define s2 $11
#define s3 $12
#define s4 $13
#define s5 $14
#define s6 $15
#define fp s6 /* frame-pointer (s6 in frame-less procedures) */
#define a0 $16 /* argument registers (caller-saved) */
#define a1 $17
#define a2 $18
#define a3 $19
#define a4 $20
#define a5 $21
#define t8 $22 /* more temps (caller-saved) */
#define t9 $23
#define t10 $24
#define t11 $25
#define ra $26 /* return address register */
#define t12 $27
#define pv t12 /* procedure-variable register */
#define AT $at /* assembler temporary */
#define gp $29 /* global pointer */
#define sp $30 /* stack pointer */
#define zero $31 /* reads as zero, writes are noops */
#endif /* __alpha_regdef_h__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment