diff options
author | rsc <devnull@localhost> | 2006-02-06 19:28:25 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-02-06 19:28:25 +0000 |
commit | 98bfdd28674d3c75aa349fd36eb55d238ce6bb30 (patch) | |
tree | 9c95f58278ac711b4e05e041cd5383adeebb65cb /src/libmach | |
parent | 9eda38e51f278aeceefd73bea6835eb929c00328 (diff) | |
download | plan9port-98bfdd28674d3c75aa349fd36eb55d238ce6bb30.tar.gz plan9port-98bfdd28674d3c75aa349fd36eb55d238ce6bb30.tar.bz2 plan9port-98bfdd28674d3c75aa349fd36eb55d238ce6bb30.zip |
initialize
Diffstat (limited to 'src/libmach')
-rw-r--r-- | src/libmach/loc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libmach/loc.c b/src/libmach/loc.c index 596c6816..8ba9481f 100644 --- a/src/libmach/loc.c +++ b/src/libmach/loc.c @@ -187,11 +187,14 @@ lput8(Map *map, Regs *regs, Loc loc, u64int u) return -1; } +static Loc zl; + Loc locaddr(ulong addr) { Loc l; + l = zl; l.type = LADDR; l.addr = addr; return l; @@ -202,6 +205,7 @@ locindir(char *reg, long offset) { Loc l; + l = zl; l.type = LOFFSET; l.reg = reg; l.offset = offset; @@ -214,6 +218,7 @@ locconst(ulong con) { Loc l; + l = zl; l.type = LCONST; l.addr = con; return l; @@ -224,6 +229,7 @@ locnone(void) { Loc l; + l = zl; l.type = LNONE; return l; } @@ -233,6 +239,7 @@ locreg(char *reg) { Loc l; + l = zl; l.type = LREG; l.reg = reg; return l; |