use the -newos toolchain even if -elf is present.
[newos.git] / include / kernel / int.h
blob333387b3915714f71bfde1ea4048c65fcb80dd6b
1 /*
2 ** Copyright 2001-2004, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #ifndef _KERNEL_INT_H
6 #define _KERNEL_INT_H
8 #include <boot/stage2.h>
9 #include <kernel/arch/int.h>
11 int int_init(kernel_args *ka);
12 int int_init2(kernel_args *ka);
13 int int_io_interrupt_handler(int vector);
14 int int_set_io_interrupt_handler(int vector, int (*func)(void*), void* data, const char *name);
15 int int_remove_io_interrupt_handler(int vector, int (*func)(void*), void* data);
17 void int_enable_interrupts(void);
18 void int_disable_interrupts(void);
19 void int_restore_interrupts(void);
20 bool int_are_interrupts_enabled(void);
22 enum {
23 INT_NO_RESCHEDULE,
24 INT_RESCHEDULE
27 #endif