delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-SBRS: | 3.5 |
X-MesageID: | 42969971 |
X-Ironport-Server: | ftlpip02.citrite.net |
X-Remote-IP: | 216.142.71.134 |
X-Policy: | $Relay |
X-IronPort-AV: | E=Sophos;i="4.25,388,1199682000"; d="scan'208";a="42969971" |
Date: | Thu, 21 Feb 2008 21:46:18 +0100 |
From: | Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: ioperm() with ports above 0x3ff |
Message-ID: | <20080221204618.GB10976@implementation> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20080218T210001-512 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20080218T210001-512@post.gmane.org> |
User-Agent: | Mutt/1.5.12-2006-07-14 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hello, Andrew Dyer, le Mon 18 Feb 2008 21:15:42 +0000, a écrit : > I am having problems using ioperm() to try and access a parallel printer port on > a PCI card in my system running WinXP. The port is mapped to I/O port address > 0xDCD8. I cannot access the port because the ioperm() driver has a check to > limit I/O port accesses to < 0x400. Yes: on Linux ioperm doesn't work above 0x400. On Linux, so as to access ports above 0x400 you need to use iopl(), that's why ioperm in cygwin does this. Now, allowing >= 0x400 would be possible in cygwin's ioperm, but then you'd get problems when using the code on Linux... The truly proper way is really to use iopl(). Samuel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |