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:
@@ -5,7 +5,7 @@
|
|||||||
Other authors:
|
Other authors:
|
||||||
Mark Watson;
|
Mark Watson;
|
||||||
Apsed;
|
Apsed;
|
||||||
Rudolf Cornelissen 5/2002-6/2003.
|
Rudolf Cornelissen 5/2002-1/2004.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* standard kernel driver stuff */
|
/* 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 == 0xff) || /* no IRQ assigned */
|
||||||
(di->pcii.u.h0.interrupt_line <= 0x02)) /* system 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 */
|
/* interrupt does not exist so exit without installing our handler */
|
||||||
goto delete_the_sem;
|
goto delete_the_sem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Other authors:
|
Other authors:
|
||||||
Mark Watson;
|
Mark Watson;
|
||||||
Rudolf Cornelissen 3/2002-10/2003.
|
Rudolf Cornelissen 3/2002-1/2004.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* standard kernel driver stuff */
|
/* 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 == 0xff) || /* no IRQ assigned */
|
||||||
(di->pcii.u.h0.interrupt_line <= 0x02)) /* system 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 */
|
/* interrupt does not exist so exit without installing our handler */
|
||||||
goto delete_the_sem;
|
goto delete_the_sem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user