delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <4.2.2.20010727035250.00bf8a00@mail.online.no> |
X-Sender: | hardon AT mail DOT online DOT no |
X-Mailer: | QUALCOMM Windows Eudora Pro Version 4.2.2 |
Date: | Fri, 27 Jul 2001 04:02:04 +0200 |
To: | cygwin AT cygwin DOT com |
From: | Gunnar Andre Dalsnes <hardon AT online DOT no> |
Subject: | Re: Read/write IO ports on NT |
In-Reply-To: | <00bb01c11429$97024e90$0a090dc0@localhost> |
Mime-Version: | 1.0 |
At 24.07.01 12:15 , you wrote: >Hi > >Trying to read and write directly at IO port on NT, using the following code > >int main() >{ > __asm("mov $1, %al"); > __asm("mov $0x3f8, %dx"); > __asm("out %al, %dx"); > return 0; >} > >also tried > >int main() >{ > _outp(0x378, 1); > return 0; >} > >but get the following exception, Privileged instruction. >Any suggestions or pointers of how to code this. > >Clive Mayo You need a kernel-mode device driver to do this. Get sample source from Dr. Dobb's Journal. ftp://ftp.ddj.com/1996/1996.05/directio.zip Gunnar. >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Bug reporting: http://cygwin.com/bugs.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |