Commit 552d8b79 authored by Shenghou Ma's avatar Shenghou Ma

[dev.power64] cmd/9l/9.out.h: introduce NFREG, REGG, REGRT1 and REGRT2

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/125990043
parent 1a1d4507
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
*/ */
#define NSNAME 8 #define NSNAME 8
#define NSYM 50 #define NSYM 50
#define NREG 32 #define NREG 32 /* number of general registers */
#define NFREG 32 /* number of floating point registers */
#include "../ld/textflag.h" #include "../ld/textflag.h"
...@@ -43,10 +44,13 @@ enum ...@@ -43,10 +44,13 @@ enum
REGSB = 2, REGSB = 2,
REGRET = 3, REGRET = 3,
REGARG = -1, /* -1 disables passing the first argument in register */ REGARG = -1, /* -1 disables passing the first argument in register */
REGRT1 = 3, /* reserved for runtime, duffzero and duffcopy */
REGRT2 = 4, /* reserved for runtime, duffcopy */
REGMIN = 7, /* register variables allocated from here to REGMAX */ REGMIN = 7, /* register variables allocated from here to REGMAX */
REGENV = 11, /* environment variable for closures */ REGENV = 11, /* environment for closures */
REGMAX = 27, REGMAX = 27,
REGEXT = 30, /* external registers allocated from here down */ REGEXT = 30, /* external registers allocated from here down */
REGG = 30, /* G */
REGTMP = 31, /* used by the linker */ REGTMP = 31, /* used by the linker */
FREGRET = 0, FREGRET = 0,
......
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