Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / lib / libarch / i386 / i386_mtrr.c
blob2a02965fbf4a851836ac5e6e4f65edf493a4a7a0
1 /* $NetBSD$ */
3 #include <sys/cdefs.h>
4 #include <sys/types.h>
6 #include <machine/sysarch.h>
8 int
9 i386_get_mtrr(struct mtrr *mtrrp, int *n)
11 struct i386_get_mtrr_args a;
13 a.mtrrp = mtrrp;
14 a.n = n;
15 return sysarch(I386_GET_MTRR, (void *)&a);
18 int
19 i386_set_mtrr(struct mtrr *mtrrp, int *n)
21 struct i386_set_mtrr_args a;
23 a.mtrrp = mtrrp;
24 a.n = n;
25 return sysarch(I386_SET_MTRR, (void *)&a);