mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Linus Torvalds <torvalds@transmeta.com>,
	Richard Henderson <rth@twiddle.net>
Cc: linux-kernel@vger.kernel.org
Subject: [patch 2.5.30] alpha: regdef.h [4/10]
Date: Sat, 10 Aug 2002 19:27:26 +0400	[thread overview]
Message-ID: <20020810192726.C20534@jurassic.park.msu.ru> (raw)

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>.

Ivan.

--- 2.5.30/arch/alpha/lib/stxcpy.S	Fri Aug  2 01:16:14 2002
+++ linux/arch/alpha/lib/stxcpy.S	Thu Aug  8 19:28:01 2002
@@ -20,7 +20,7 @@
  * Furthermore, v0, a3-a5, t11, and t12 are untouched.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noat
 	.set noreorder
--- 2.5.30/arch/alpha/lib/ev6-stxcpy.S	Fri Aug  2 01:16:00 2002
+++ linux/arch/alpha/lib/ev6-stxcpy.S	Thu Aug  8 19:28:01 2002
@@ -30,7 +30,7 @@
  * Try not to change the actual algorithm if possible for consistency.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noat
 	.set noreorder
--- 2.5.30/arch/alpha/lib/ev6-stxncpy.S	Fri Aug  2 01:16:33 2002
+++ linux/arch/alpha/lib/ev6-stxncpy.S	Thu Aug  8 19:28:01 2002
@@ -38,7 +38,7 @@
  * Try not to change the actual algorithm if possible for consistency.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noat
 	.set noreorder
--- 2.5.30/arch/alpha/lib/strncpy_from_user.S	Fri Aug  2 01:16:06 2002
+++ linux/arch/alpha/lib/strncpy_from_user.S	Thu Aug  8 19:28:01 2002
@@ -12,7 +12,7 @@
 
 
 #include <asm/errno.h>
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 
 /* Allow an exception for an insn; exit if we get one.  */
--- 2.5.30/arch/alpha/lib/stxncpy.S	Fri Aug  2 01:16:45 2002
+++ linux/arch/alpha/lib/stxncpy.S	Thu Aug  8 19:28:01 2002
@@ -28,7 +28,7 @@
  * Furthermore, v0, a3-a5, t11, t12, and $at are untouched.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noat
 	.set noreorder
--- 2.5.30/arch/alpha/lib/ev67-strlen_user.S	Fri Aug  2 01:16:23 2002
+++ linux/arch/alpha/lib/ev67-strlen_user.S	Thu Aug  8 19:28:01 2002
@@ -23,7 +23,7 @@
  * 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.  */
--- 2.5.30/arch/alpha/lib/strchr.S	Fri Aug  2 01:16:24 2002
+++ linux/arch/alpha/lib/strchr.S	Thu Aug  8 19:28:01 2002
@@ -6,7 +6,7 @@
  * string, or null if it is not found.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noreorder
 	.set noat
--- 2.5.30/arch/alpha/lib/strlen_user.S	Fri Aug  2 01:16:26 2002
+++ linux/arch/alpha/lib/strlen_user.S	Thu Aug  8 19:28:01 2002
@@ -12,7 +12,7 @@
  * boundary when doing so.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 
 /* Allow an exception for an insn; exit if we get one.  */
--- 2.5.30/arch/alpha/lib/ev67-strrchr.S	Fri Aug  2 01:16:27 2002
+++ linux/arch/alpha/lib/ev67-strrchr.S	Thu Aug  8 19:28:01 2002
@@ -19,7 +19,7 @@
  */
 
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noreorder
 	.set noat
--- 2.5.30/arch/alpha/lib/ev67-strchr.S	Fri Aug  2 01:16:28 2002
+++ linux/arch/alpha/lib/ev67-strchr.S	Thu Aug  8 19:28:01 2002
@@ -16,7 +16,7 @@
  * Try not to change the actual algorithm if possible for consistency.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noreorder
 	.set noat
--- 2.5.30/arch/alpha/lib/strrchr.S	Fri Aug  2 01:16:34 2002
+++ linux/arch/alpha/lib/strrchr.S	Thu Aug  8 19:28:01 2002
@@ -6,7 +6,7 @@
  * within a null-terminated string, or null if it is not found.
  */
 
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 	.set noreorder
 	.set noat
--- 2.5.30/arch/alpha/lib/ev6-strncpy_from_user.S	Fri Aug  2 01:16:45 2002
+++ linux/arch/alpha/lib/ev6-strncpy_from_user.S	Thu Aug  8 19:28:01 2002
@@ -27,7 +27,7 @@
 
 
 #include <asm/errno.h>
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
 
 
 /* Allow an exception for an insn; exit if we get one.  */
--- 2.5.30/include/asm-alpha/regdef.h	Thu Jan  1 00:00:00 1970
+++ linux/include/asm-alpha/regdef.h	Thu Aug  8 19:28:02 2002
@@ -0,0 +1,44 @@
+#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__ */

                 reply	other threads:[~2002-08-10 15:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020810192726.C20534@jurassic.park.msu.ru \
    --to=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@twiddle.net \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®