Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2244 → Rev 2245

/branches/arm/kernel/arch/arm32/src/interrupt.c
1,5 → 1,5
/*
* Copyright (c) 2007 Petr Stepan, Michal Kebrt
* Copyright (c) 2007 Petr Stepan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
34,12 → 34,13
 
#include <arch/asm.h>
#include <arch/regutils.h>
#include <ddi/irq.h>
#include <arch/drivers/gxemul.h>
#include <interrupt.h>
 
#define IRQ_COUNT 8
 
#define IRQ_COUNT 8
 
 
/** Disable interrupts.
*
* @return Old interrupt priority level.
85,9 → 86,17
return current_status_reg_read();
}
 
void interrupt_init(void) {
/** Initialize basic tables for exception dispatching
* and starts the timer.
*/
void interrupt_init(void)
{
irq_init(IRQ_COUNT, IRQ_COUNT);
 
gxemul_timer_irq_init();
gxemul_timer_start(GXEMUL_TIMER_FREQ);
}
 
 
/** @}
*/