enable interrupts

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22147 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-09-01 20:49:07 +00:00
parent 25f926d8e4
commit 23c7bf9da2

View File

@ -149,6 +149,10 @@ AHCIController::Init()
}
}
// enable interrupts
fRegs->ghc |= GHC_IE;
RegsFlush();
return B_OK;
err:
@ -171,8 +175,11 @@ AHCIController::Uninit()
// disable interrupts
fRegs->ghc &= ~GHC_IE;
RegsFlush();
// clear pending interrupts
fRegs->is = 0xffffffff;
RegsFlush();
// well...
remove_io_interrupt_handler(fIRQ, Interrupt, this);