haiku/headers/private/kernel/arch/int.h
Axel Dörfler b0d8e689ac Renamed some more init2 routines to init_post_vm() to make it clearer when
and why they are called.
Introduced a cpu_init_post_vm() that will now call arch_init_post_vm() instead
of letting main() doing it.
Fixed some return types (mostly from int to status_t).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-21 01:41:29 +00:00

34 lines
783 B
C

/*
** Copyright 2002-2004, The Haiku Team. All rights reserved.
** Distributed under the terms of the Haiku License.
**
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef KERNEL_ARCH_INT_H
#define KERNEL_ARCH_INT_H
#include <boot/kernel_args.h>
#ifdef __cplusplus
extern "C" {
#endif
status_t arch_int_init(kernel_args *args);
status_t arch_int_init_post_vm(kernel_args *args);
void arch_int_enable_interrupts(void);
int arch_int_disable_interrupts(void);
void arch_int_restore_interrupts(int oldstate);
void arch_int_enable_io_interrupt(int irq);
void arch_int_disable_io_interrupt(int irq);
bool arch_int_are_interrupts_enabled(void);
#ifdef __cplusplus
}
#endif
#endif /* KERNEL_ARCH_INT_H */