From owner-cvs-src-old@FreeBSD.ORG Mon Jan 11 18:10:36 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A01F1065676 for ; Mon, 11 Jan 2010 18:10:36 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 33FA98FC13 for ; Mon, 11 Jan 2010 18:10:36 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0BIAa8j004249 for ; Mon, 11 Jan 2010 18:10:36 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0BIAai7004248 for cvs-src-old@freebsd.org; Mon, 11 Jan 2010 18:10:36 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <201001111810.o0BIAai7004248@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Mon, 11 Jan 2010 18:10:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 io.c src/sys/amd64/include iodev.h src/sys/conf files.ia64 src/sys/dev/io iodev.c src/sys/i386/i386 io.c src/sys/i386/include iodev.h src/sys/ia64/conf DEFAULTS src/sys/ia64/ia64 iodev_machdep.c sys_machdep.c ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 18:10:36 -0000 marcel 2010-01-11 18:10:13 UTC FreeBSD src repository Modified files: sys/amd64/amd64 io.c sys/amd64/include iodev.h sys/conf files.ia64 sys/dev/io iodev.c sys/i386/i386 io.c sys/i386/include iodev.h sys/ia64/conf DEFAULTS sys/ia64/ia64 sys_machdep.c sys/ia64/include sysarch.h Added files: sys/ia64/ia64 iodev_machdep.c sys/ia64/include iodev.h Log: SVN rev 202097 on 2010-01-11 18:10:13Z by marcel Use io(4) for I/O port access on ia64, rather than through sysarch(2). I/O port access is implemented on Itanium by reading and writing to a special region in memory. To hide details and avoid misaligned memory accesses, a process did I/O port reads and writes by making a MD system call. There's one fatal problem with this approach: unprivileged access was not being prevented. /dev/io serves that purpose on amd64/i386, so employ it on ia64 as well. Use an ioctl for doing the actual I/O and remove the sysarch(2) interface. Backward compatibility is not being considered. The sysarch(2) approach was added to support X11, but support for FreeBSD/ia64 was never fully implemented in X11. Thus, nothing gets broken that didn't need more work to begin with. MFC after: 1 week Revision Changes Path 1.3 +9 -0 src/sys/amd64/amd64/io.c 1.3 +1 -0 src/sys/amd64/include/iodev.h 1.104 +2 -0 src/sys/conf/files.ia64 1.5 +1 -2 src/sys/dev/io/iodev.c 1.3 +9 -0 src/sys/i386/i386/io.c 1.3 +1 -0 src/sys/i386/include/iodev.h 1.19 +1 -0 src/sys/ia64/conf/DEFAULTS 1.1 +160 -0 src/sys/ia64/ia64/iodev_machdep.c (new) 1.10 +0 -63 src/sys/ia64/ia64/sys_machdep.c 1.1 +51 -0 src/sys/ia64/include/iodev.h (new) 1.5 +0 -9 src/sys/ia64/include/sysarch.h