Subject: Outb() call
To: None <port-i386@netbsd.org>
From: Jean-Edouard BABIN <listes@jeb.com.fr>
List: port-i386
Date: 03/06/2004 23:11:44
Hi,

I am trying to access // port using outb()
Using this simple code:

#include <sys/types.h>
#include <fcntl.h>
#include "/usr/include/x86/pio.h"

int main() {
        int fHndl;
        fHndl = open("/dev/io", O_RDONLY);
        outb(0x378,255);
        close(fHndl);
}

Bug i get Bus error (core dumped)
This code work on freebsd with machine/cpufunc.h
If someone can help me

thanks

-- 
Jean-Edouard BABIN
Mail: Jeb@jeb.com.fr
Web : www.Jeb.com.fr
IRC : Jeb @ Undernet