Moved the kernel_startup variable declaration from int.h to kernel.h (it's defined in main.c).

Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12327 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-04-12 06:09:13 +00:00
parent c46e419bc5
commit f80b1fa5b5
5 changed files with 44 additions and 33 deletions
+10 -9
View File
@@ -1,22 +1,23 @@
/*
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_INT_H
#define _KERNEL_INT_H
#include <KernelExport.h>
#include <KernelExport.h>
#include <arch/int.h>
struct kernel_args;
/* adds the handler but don't change whether or not the interrupt is currently enabled */
#define B_NO_ENABLE_COUNTER 1
/* during kernel startup, interrupts are disabled */
extern bool kernel_startup;
#ifdef __cplusplus
extern "C" {
@@ -25,8 +26,8 @@ extern "C" {
status_t int_init(struct kernel_args *args);
status_t int_init_post_vm(struct kernel_args *args);
int int_io_interrupt_handler(int vector);
long install_interrupt_handler(long, interrupt_handler, void *);
long remove_interrupt_handler (long, interrupt_handler, void *);
status_t install_interrupt_handler(long vector, interrupt_handler, void *data);
status_t remove_interrupt_handler(long vector, interrupt_handler, void *data);
static inline void
enable_interrupts(void)