Subversion Repositories HelenOS

Rev

Rev 1936 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1936 Rev 1955
Line 44... Line 44...
44
#include <ddi/irq.h>
44
#include <ddi/irq.h>
45
 
45
 
46
#define IRQ_COUNT 8
46
#define IRQ_COUNT 8
47
#define TIMER_IRQ 7
47
#define TIMER_IRQ 7
48
 
48
 
49
function timer_fnc = NULL;
49
function virtual_timer_fnc = NULL;
50
static irq_t timer_irq;
50
static irq_t timer_irq;
51
 
51
 
52
/** Disable interrupts.
52
/** Disable interrupts.
53
 *
53
 *
54
 * @return Old interrupt priority level.
54
 * @return Old interrupt priority level.
Line 114... Line 114...
114
    }
114
    }
115
    nextcount = cp0_count_read() + cp0_compare_value - drift;
115
    nextcount = cp0_count_read() + cp0_compare_value - drift;
116
    cp0_compare_write(nextcount);
116
    cp0_compare_write(nextcount);
117
    clock();
117
    clock();
118
   
118
   
119
    if (timer_fnc != NULL)
119
    if (virtual_timer_fnc != NULL)
120
        timer_fnc();
120
        virtual_timer_fnc();
121
}
121
}
122
 
122
 
123
/* Initialize basic tables for exception dispatching */
123
/* Initialize basic tables for exception dispatching */
124
void interrupt_init(void)
124
void interrupt_init(void)
125
{
125
{