Use definitions provided in sysarch.h for args structures.
Reviewed by: marcel
This commit is contained in:
parent
7a2bb3b800
commit
018949c4ac
@ -32,16 +32,10 @@ static const char rcsid[] = "$FreeBSD$";
|
||||
|
||||
#include <machine/sysarch.h>
|
||||
|
||||
struct parms {
|
||||
unsigned int start;
|
||||
unsigned int length;
|
||||
int enable;
|
||||
};
|
||||
|
||||
int
|
||||
i386_get_ioperm(unsigned int start, unsigned int *length, int *enable)
|
||||
{
|
||||
struct parms p;
|
||||
struct i386_ioperm_args p;
|
||||
int error;
|
||||
|
||||
p.start = start;
|
||||
|
@ -36,20 +36,14 @@ static const char rcsid[] = "$FreeBSD$";
|
||||
#include <machine/segments.h>
|
||||
#include <machine/sysarch.h>
|
||||
|
||||
struct parms {
|
||||
int start;
|
||||
union descriptor *descs;
|
||||
int num;
|
||||
};
|
||||
|
||||
int
|
||||
i386_get_ldt(int start, union descriptor *descs, int num)
|
||||
{
|
||||
struct parms p;
|
||||
struct i386_ldt_args p;
|
||||
|
||||
p.start = start;
|
||||
p.descs = descs;
|
||||
p.num = num;
|
||||
p.start = start;
|
||||
p.descs = descs;
|
||||
p.num = num;
|
||||
|
||||
return sysarch(I386_GET_LDT, (char *)&p);
|
||||
}
|
||||
|
@ -32,16 +32,10 @@ static const char rcsid[] = "$FreeBSD$";
|
||||
|
||||
#include <machine/sysarch.h>
|
||||
|
||||
struct parms {
|
||||
unsigned int start;
|
||||
unsigned int length;
|
||||
int enable;
|
||||
};
|
||||
|
||||
int
|
||||
i386_set_ioperm(unsigned int start, unsigned int length, int enable)
|
||||
{
|
||||
struct parms p;
|
||||
struct i386_ioperm_args p;
|
||||
|
||||
p.start = start;
|
||||
p.length = length;
|
||||
|
@ -36,20 +36,14 @@ static const char rcsid[] = "$FreeBSD$";
|
||||
#include <machine/segments.h>
|
||||
#include <machine/sysarch.h>
|
||||
|
||||
struct parms {
|
||||
int start;
|
||||
union descriptor *descs;
|
||||
int num;
|
||||
};
|
||||
|
||||
int
|
||||
i386_set_ldt(int start, union descriptor *descs, int num)
|
||||
{
|
||||
struct parms p;
|
||||
struct i386_ldt_args p;
|
||||
|
||||
p.start = start;
|
||||
p.descs = descs;
|
||||
p.num = num;
|
||||
p.start = start;
|
||||
p.descs = descs;
|
||||
p.num = num;
|
||||
|
||||
return sysarch(I386_SET_LDT, (char *)&p);
|
||||
}
|
||||
|
@ -32,18 +32,13 @@ static const char rcsid[] = "$FreeBSD$";
|
||||
|
||||
#include <machine/sysarch.h>
|
||||
|
||||
struct parms {
|
||||
int sub_op;
|
||||
void *sub_args;
|
||||
};
|
||||
|
||||
int
|
||||
i386_vm86(int fcn, void *data)
|
||||
{
|
||||
struct parms p;
|
||||
struct i386_vm86_args p;
|
||||
|
||||
p.sub_op = fcn;
|
||||
p.sub_args = data;
|
||||
p.sub_args = (char *)data;
|
||||
|
||||
return (sysarch(I386_VM86, (void *)&p));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user