mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:46:38 +00:00
[HAL]
- fix indentation - add HalDisableSystemInterrupt and HalEnableSystemInterrupt stubs svn path=/branches/ros-amd64-bringup/; revision=44830
This commit is contained in:
parent
54dd2d3fd6
commit
18534cb3b7
1 changed files with 87 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue