Fix for the fix. The previous commit actually broke initalizing timers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33222 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "interrupts.h"
|
#include "interrupts.h"
|
||||||
|
|
||||||
//#define TRACE_TIMER
|
#define TRACE_TIMER
|
||||||
#ifdef TRACE_TIMER
|
#ifdef TRACE_TIMER
|
||||||
# define TRACE(x) dprintf x
|
# define TRACE(x) dprintf x
|
||||||
#else
|
#else
|
||||||
@@ -99,7 +99,7 @@ arch_init_timer(kernel_args *args)
|
|||||||
state = disable_interrupts();
|
state = disable_interrupts();
|
||||||
|
|
||||||
for (i = 0; (timer = sTimers[i]) != NULL; i++) {
|
for (i = 0; (timer = sTimers[i]) != NULL; i++) {
|
||||||
if (timer->init(args) != B_OK)
|
if (timer->init(args) == B_OK)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user