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:
@@ -2,13 +2,14 @@
|
|||||||
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||||
** Distributed under the terms of the NewOS License.
|
** Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _KERNEL_ARCH_CPU_H
|
#ifndef _KERNEL_ARCH_CPU_H
|
||||||
#define _KERNEL_ARCH_CPU_H
|
#define _KERNEL_ARCH_CPU_H
|
||||||
|
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <ktypes.h>
|
#include <ktypes.h>
|
||||||
#include <boot/stage2.h>
|
#include <boot/kernel_args.h>
|
||||||
|
|
||||||
|
|
||||||
#define PAGE_ALIGN(x) (((x) + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1))
|
#define PAGE_ALIGN(x) (((x) + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1))
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,13 @@
|
|||||||
#ifndef KERNEL_ARCH_INT_H
|
#ifndef KERNEL_ARCH_INT_H
|
||||||
#define 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_init(kernel_args *ka);
|
||||||
int arch_int_init2(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);
|
void arch_int_disable_io_interrupt(int irq);
|
||||||
bool arch_int_is_interrupts_enabled(void);
|
bool arch_int_is_interrupts_enabled(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* KERNEL_ARCH_INT_H */
|
#endif /* KERNEL_ARCH_INT_H */
|
||||||
|
|||||||
@@ -11,11 +11,19 @@
|
|||||||
struct kernel_args;
|
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
|
#define SMP_MAX_CPUS MAX_BOOT_CPUS
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
int arch_smp_init(struct kernel_args *ka);
|
int arch_smp_init(struct kernel_args *ka);
|
||||||
void arch_smp_send_ici(int target_cpu);
|
void arch_smp_send_ici(int target_cpu);
|
||||||
void arch_smp_send_broadcast_ici(void);
|
void arch_smp_send_broadcast_ici(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* KERNEL_ARCH_SMP_H */
|
#endif /* KERNEL_ARCH_SMP_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user