- 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(); OldEflags = __readeflags();
_disable(); _disable();
/* /*
* Set up the first 8259 interrupt processor. * Set up the first 8259 interrupt processor.
* Make 8259 interrupts start at CPU vector VectorPIC. * Make 8259 interrupts start at CPU vector VectorPIC.
@ -97,15 +98,44 @@ HalpInitPICs(VOID)
* that's OK try a R/W test. * that's OK try a R/W test.
*/ */
x = (__inbyte(Elcr2) << 8) | __inbyte(Elcr1); x = (__inbyte(Elcr2) << 8) | __inbyte(Elcr1);
if(!(x & 0x2107)){
if (!(x & 0x2107))
{
__outbyte(Elcr1, 0); __outbyte(Elcr1, 0);
if(__inbyte (Elcr1) == 0){
if (__inbyte (Elcr1) == 0)
{
__outbyte(Elcr1, 0x20); __outbyte(Elcr1, 0x20);
if (__inbyte (Elcr1) == 0x20) if (__inbyte (Elcr1) == 0x20)
{
i8259elcr = x; i8259elcr = x;
}
__outbyte(Elcr1, x & 0xFF); __outbyte(Elcr1, x & 0xFF);
DPRINT("ELCR: %4.4uX\n", i8259elcr); DPRINT("ELCR: %4.4uX\n", i8259elcr);
} }
} }
__writeeflags(OldEflags); __writeeflags(OldEflags);
} }
VOID
NTAPI
HalDisableSystemInterrupt(
ULONG Vector,
KIRQL Irql)
{
UNIMPLEMENTED;
}
BOOLEAN
NTAPI
HalEnableSystemInterrupt(
ULONG Vector,
KIRQL Irql,
KINTERRUPT_MODE InterruptMode)
{
UNIMPLEMENTED;
return FALSE;
}