Some header work: removed unnecessary dependencies to stage2.h, fixed
some broken C++ export definitions, added missing licenses etc. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3152 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,12 +2,15 @@
|
||||
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
#ifndef _KERNEL_SMP_H
|
||||
#define _KERNEL_SMP_H
|
||||
#ifndef KERNEL_SMP_H
|
||||
#define KERNEL_SMP_H
|
||||
|
||||
|
||||
#include <stage2.h>
|
||||
#include <KernelExport.h>
|
||||
|
||||
struct kernel_args;
|
||||
|
||||
|
||||
// intercpu messages
|
||||
enum {
|
||||
SMP_MSG_INVL_PAGE_RANGE = 0,
|
||||
@@ -23,8 +26,8 @@ enum {
|
||||
SMP_MSG_FLAG_SYNC,
|
||||
};
|
||||
|
||||
int smp_init(kernel_args *ka);
|
||||
int smp_trap_non_boot_cpus(kernel_args *ka, int cpu);
|
||||
int smp_init(struct kernel_args *ka);
|
||||
int smp_trap_non_boot_cpus(struct kernel_args *ka, int cpu);
|
||||
void smp_wake_up_all_non_boot_cpus(void);
|
||||
void smp_wait_for_ap_cpus(kernel_args *ka);
|
||||
void smp_send_ici(int target_cpu, int message, unsigned long data, unsigned long data2, unsigned long data3, void *data_ptr, int flags);
|
||||
@@ -36,5 +39,6 @@ int smp_get_num_cpus(void);
|
||||
void smp_set_num_cpus(int num_cpus);
|
||||
int smp_get_current_cpu(void);
|
||||
|
||||
#endif
|
||||
int smp_intercpu_int_handler(void);
|
||||
|
||||
#endif /* KERNEL_SMP_H */
|
||||
|
||||
Reference in New Issue
Block a user