From: Shenghou Ma Date: Tue, 12 Aug 2014 03:44:38 +0000 (-0400) Subject: [dev.power64] cmd/9l/9.out.h: introduce NFREG, REGG, REGRT1 and REGRT2 X-Git-Tag: go1.5beta1~2684^2~25^2~81 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=552d8b79dde79dac269b124337765bb7993ec922;p=gostls13.git [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 --- diff --git a/src/cmd/9l/9.out.h b/src/cmd/9l/9.out.h index 6e4f9ee1b6..e494e90ca9 100644 --- a/src/cmd/9l/9.out.h +++ b/src/cmd/9l/9.out.h @@ -32,7 +32,8 @@ */ #define NSNAME 8 #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" @@ -43,17 +44,20 @@ enum REGSB = 2, REGRET = 3, 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 */ - REGENV = 11, /* environment variable for closures */ + REGENV = 11, /* environment for closures */ REGMAX = 27, REGEXT = 30, /* external registers allocated from here down */ + REGG = 30, /* G */ REGTMP = 31, /* used by the linker */ FREGRET = 0, FREGMIN = 17, /* first register variable */ FREGMAX = 26, /* last register variable for 9g only */ FREGEXT = 26, /* first external register */ - FREGCVI = 27, /* floating conversion constant */ + FREGCVI = 27, /* floating conversion constant */ FREGZERO = 28, /* both float and double */ FREGHALF = 29, /* double */ FREGONE = 30, /* double */