From 87fc7ec99f4dff984e15b494d2083cbc3b523d5d Mon Sep 17 00:00:00 2001 From: Jordan Gordeev Date: Fri, 18 Sep 2009 01:14:30 +0300 Subject: [PATCH] amd64: Fix for Xorg. Xorg can now access the video card. Adapted from i386. --- sys/platform/pc64/amd64/sysarch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/platform/pc64/amd64/sysarch.c b/sys/platform/pc64/amd64/sysarch.c index 98a04bc963..afc3bdb1bd 100644 --- a/sys/platform/pc64/amd64/sysarch.c +++ b/sys/platform/pc64/amd64/sysarch.c @@ -39,6 +39,7 @@ #include #include #include +#include int sys_sysarch(struct sysarch_args *uap) @@ -49,12 +50,14 @@ sys_sysarch(struct sysarch_args *uap) int cpu_set_iopl(void) { - return (EOPNOTSUPP); + curthread->td_lwp->lwp_md.md_regs->tf_rflags |= PSL_IOPL; + return(0); } int cpu_clr_iopl(void) { - return (EOPNOTSUPP); + curthread->td_lwp->lwp_md.md_regs->tf_rflags &= ~PSL_IOPL; + return(0); } -- 2.11.4.GIT