Page Fault Exception problem
Posted: Sat Jul 24, 2010 9:41 am
I'm trying to support ATA and ATAPI drivers in my OS, but when i do this:
it gives a Page Fault Exceptions, and halts...
definitions of dc and CB_DC:
pio_outbyte:
Any idea ?
Code: Select all
//set up Device Control register
pio_outbyte( CB_DC, dc );
definitions of dc and CB_DC:
Code: Select all
#define CB_DC 8
//In the same function that the pio_outbyte error:
unsigned char dc;
//setup registry values:
dc = (unsigned char) ( int_use_intr_flag ? 0 : CB_DC_NIEN );
Code: Select all
static void pio_outbyte( int addr, unsigned char data )
{
//!!! write an 8-bit ATA register
* pio_reg_addrs[ addr ] = data;
}