- fix indentation
- add HalDisableSystemInterrupt and HalEnableSystemInterrupt stubs

svn path=/branches/ros-amd64-bringup/; revision=44830
This commit is contained in:
Timo Kreuzer 2009-12-31 16:47:09 +00:00
parent 54dd2d3fd6
commit 18534cb3b7

View file

@ -46,6 +46,7 @@ HalpInitPICs(VOID)
OldEflags = __readeflags();
_disable();
/*
* Set up the first 8259 interrupt processor.
* Make 8259 interrupts start at CPU vector VectorPIC.
@ -96,16 +97,45 @@ HalpInitPICs(VOID)
* IRQs 13, 8, 2, 1 and 0 must be edge (0). If
* that's OK try a R/W test.
*/
x = (__inbyte (Elcr2)<<8)|__inbyte(Elcr1);
if(!(x & 0x2107)){
x = (__inbyte(Elcr2) << 8) | __inbyte(Elcr1);
if (!(x & 0x2107))
{
__outbyte(Elcr1, 0);
if(__inbyte (Elcr1) == 0){
if (__inbyte (Elcr1) == 0)
{
__outbyte(Elcr1, 0x20);
if(__inbyte (Elcr1) == 0x20)
if (__inbyte (Elcr1) == 0x20)
{
i8259elcr = x;
}
__outbyte(Elcr1, x & 0xFF);
DPRINT("ELCR: %4.4uX\n", i8259elcr);
}
}
__writeeflags(OldEflags);
}
}
VOID
NTAPI
HalDisableSystemInterrupt(
ULONG Vector,
KIRQL Irql)
{
UNIMPLEMENTED;
}
BOOLEAN
NTAPI
HalEnableSystemInterrupt(
ULONG Vector,
KIRQL Irql,
KINTERRUPT_MODE InterruptMode)
{
UNIMPLEMENTED;
return FALSE;
}