Use definitions provided in sysarch.h for args structures.

Reviewed by:	marcel
This commit is contained in:
Luoqi Chen 1999-09-02 21:03:32 +00:00
parent 7a2bb3b800
commit 018949c4ac
5 changed files with 12 additions and 41 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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;

View File

@ -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);
}

View File

@ -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));
}