Now use the new kernel_args.h header file.

Added C++ guards.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4958 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-10-07 21:56:32 +00:00
parent 33dc59abd3
commit f432eca440
3 changed files with 23 additions and 4 deletions

View File

@ -2,13 +2,14 @@
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_ARCH_CPU_H
#define _KERNEL_ARCH_CPU_H
#include <kernel.h>
#include <ktypes.h>
#include <boot/stage2.h>
#include <boot/kernel_args.h>
#define PAGE_ALIGN(x) (((x) + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1))

View File

@ -5,7 +5,13 @@
#ifndef KERNEL_ARCH_INT_H
#define KERNEL_ARCH_INT_H
#include <boot/stage2.h>
#include <boot/kernel_args.h>
#ifdef __cplusplus
extern "C" {
#endif
int arch_int_init(kernel_args *ka);
int arch_int_init2(kernel_args *ka);
@ -17,4 +23,8 @@ void arch_int_enable_io_interrupt(int irq);
void arch_int_disable_io_interrupt(int irq);
bool arch_int_is_interrupts_enabled(void);
#ifdef __cplusplus
}
#endif
#endif /* KERNEL_ARCH_INT_H */

View File

@ -11,11 +11,19 @@
struct kernel_args;
// must match MAX_BOOT_CPUS in stage2.h
// must match MAX_BOOT_CPUS in platform_kernel_args.h
#define SMP_MAX_CPUS MAX_BOOT_CPUS
#ifdef __cplusplus
extern "C" {
#endif
int arch_smp_init(struct kernel_args *ka);
void arch_smp_send_ici(int target_cpu);
void arch_smp_send_broadcast_ici(void);
#ifdef __cplusplus
}
#endif
#endif /* KERNEL_ARCH_SMP_H */