fixed abort signalling on failing to install INT routine

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5916 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2004-01-05 18:12:50 +00:00
parent dd0281066d
commit ce817d83ee
2 changed files with 8 additions and 2 deletions
@@ -5,7 +5,7 @@
Other authors:
Mark Watson;
Apsed;
Rudolf Cornelissen 5/2002-6/2003.
Rudolf Cornelissen 5/2002-1/2004.
*/
/* standard kernel driver stuff */
@@ -692,6 +692,9 @@ static status_t open_hook (const char* name, uint32 flags, void** cookie) {
(di->pcii.u.h0.interrupt_line == 0xff) || /* no IRQ assigned */
(di->pcii.u.h0.interrupt_line <= 0x02)) /* system IRQ assigned */
{
/* we are aborting! */
/* Note: the R4 graphics driver kit lacks this statement!! */
result = B_ERROR;
/* interrupt does not exist so exit without installing our handler */
goto delete_the_sem;
}
@@ -4,7 +4,7 @@
Other authors:
Mark Watson;
Rudolf Cornelissen 3/2002-10/2003.
Rudolf Cornelissen 3/2002-1/2004.
*/
/* standard kernel driver stuff */
@@ -729,6 +729,9 @@ static status_t open_hook (const char* name, uint32 flags, void** cookie) {
(di->pcii.u.h0.interrupt_line == 0xff) || /* no IRQ assigned */
(di->pcii.u.h0.interrupt_line <= 0x02)) /* system IRQ assigned */
{
/* we are aborting! */
/* Note: the R4 graphics driver kit lacks this statement!! */
result = B_ERROR;
/* interrupt does not exist so exit without installing our handler */
goto delete_the_sem;
}