2002-07-09 16:24:59 +04:00
|
|
|
/*
|
|
|
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
** Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2003-05-03 18:12:16 +04:00
|
|
|
#ifndef KERNEL_ARCH_SMP_H
|
|
|
|
#define KERNEL_ARCH_SMP_H
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
#include <kernel.h>
|
2003-05-03 18:12:16 +04:00
|
|
|
|
|
|
|
struct kernel_args;
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-08 01:56:32 +04:00
|
|
|
// must match MAX_BOOT_CPUS in platform_kernel_args.h
|
2002-07-09 16:24:59 +04:00
|
|
|
#define SMP_MAX_CPUS MAX_BOOT_CPUS
|
|
|
|
|
2003-10-08 01:56:32 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-03-15 01:54:00 +03:00
|
|
|
status_t arch_smp_init(struct kernel_args *args);
|
|
|
|
status_t arch_smp_per_cpu_init(struct kernel_args *args, int32 cpu);
|
|
|
|
void arch_smp_send_ici(int32 target_cpu);
|
2002-07-09 16:24:59 +04:00
|
|
|
void arch_smp_send_broadcast_ici(void);
|
|
|
|
|
2003-10-08 01:56:32 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-05-03 18:12:16 +04:00
|
|
|
#endif /* KERNEL_ARCH_SMP_H */
|