1 /* $NetBSD: i386_mtrr.c,v 1.1 2001/09/10 10:20:32 fvdl Exp $ */ 2 3 #include <sys/cdefs.h> 4 #include <sys/types.h> 5 6 #include <machine/sysarch.h> 7 8 int 9 i386_get_mtrr(struct mtrr *mtrrp, int *n) 10 { 11 struct i386_get_mtrr_args a; 12 13 a.mtrrp = mtrrp; 14 a.n = n; 15 return sysarch(I386_GET_MTRR, (void *)&a); 16 } 17 18 int 19 i386_set_mtrr(struct mtrr *mtrrp, int *n) 20 { 21 struct i386_set_mtrr_args a; 22 23 a.mtrrp = mtrrp; 24 a.n = n; 25 return sysarch(I386_SET_MTRR, (void *)&a); 26 } 27