make regdesc global
This commit is contained in:
parent
042aca7718
commit
d0f5cbcf04
1 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue