1*b48e735fSfvdl /* $NetBSD: x86_64_mtrr.c,v 1.1 2002/06/18 08:29:36 fvdl Exp $ */ 2*b48e735fSfvdl 3*b48e735fSfvdl #include <sys/cdefs.h> 4*b48e735fSfvdl #include <sys/types.h> 5*b48e735fSfvdl 6*b48e735fSfvdl #include <machine/sysarch.h> 7*b48e735fSfvdl 8*b48e735fSfvdl int x86_64_get_mtrr(struct mtrr * mtrrp,int * n)9*b48e735fSfvdlx86_64_get_mtrr(struct mtrr *mtrrp, int *n) 10*b48e735fSfvdl { 11*b48e735fSfvdl struct x86_64_get_mtrr_args a; 12*b48e735fSfvdl 13*b48e735fSfvdl a.mtrrp = mtrrp; 14*b48e735fSfvdl a.n = n; 15*b48e735fSfvdl return sysarch(X86_64_GET_MTRR, (void *)&a); 16*b48e735fSfvdl } 17*b48e735fSfvdl 18*b48e735fSfvdl int x86_64_set_mtrr(struct mtrr * mtrrp,int * n)19*b48e735fSfvdlx86_64_set_mtrr(struct mtrr *mtrrp, int *n) 20*b48e735fSfvdl { 21*b48e735fSfvdl struct x86_64_set_mtrr_args a; 22*b48e735fSfvdl 23*b48e735fSfvdl a.mtrrp = mtrrp; 24*b48e735fSfvdl a.n = n; 25*b48e735fSfvdl return sysarch(X86_64_SET_MTRR, (void *)&a); 26*b48e735fSfvdl } 27