aboutsummaryrefslogtreecommitdiff
path: root/src/libmach
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-07 04:02:28 +0000
committerrsc <devnull@localhost>2005-01-07 04:02:28 +0000
commitd0f5cbcf04ffd9e35386e831a18584bad0d7d286 (patch)
tree77423bbaa85ca7836773f790f2d4620d62075d84 /src/libmach
parent042aca7718160dbb4ba9407b1643306503d14f0d (diff)
downloadplan9port-d0f5cbcf04ffd9e35386e831a18584bad0d7d286.tar.gz
plan9port-d0f5cbcf04ffd9e35386e831a18584bad0d7d286.tar.bz2
plan9port-d0f5cbcf04ffd9e35386e831a18584bad0d7d286.zip
make regdesc global
Diffstat (limited to 'src/libmach')
-rw-r--r--src/libmach/regs.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libmach/regs.c b/src/libmach/regs.c
index 43c04786..78972eeb 100644
--- a/src/libmach/regs.c
+++ b/src/libmach/regs.c
@@ -2,6 +2,17 @@
#include <libc.h>
#include <mach.h>
+Regdesc*
+regdesc(char *name)
+{
+ Regdesc *r;
+
+ for(r=mach->reglist; r->name; r++)
+ if(strcmp(r->name, name) == 0)
+ return r;
+ return nil;
+}
+
int
rput(Regs *regs, char *name, ulong u)
{
@@ -46,14 +57,3 @@ _uregrw(Regs *regs, char *name, ulong *u, int isr)
}
}
-Regdesc*
-regdesc(char *name)
-{
- Regdesc *r;
-
- for(r=mach->reglist; r->name; r++)
- if(strcmp(r->name, name) == 0)
- return r;
- return nil;
-}
-