lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 518dd43 was d71331b, checked in by Adam Hraska <adam.hraska+hos@…>, 13 years ago |
|
smp_call: Moved content of arch header to generic header.
|
-
Property mode
set to
100644
|
|
File size:
650 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | */
|
|---|
| 3 |
|
|---|
| 4 | #ifndef KERN_SMP_CALL_H_
|
|---|
| 5 | #define KERN_SMP_CALL_H_
|
|---|
| 6 |
|
|---|
| 7 | #include <adt/list.h>
|
|---|
| 8 | #include <synch/spinlock.h>
|
|---|
| 9 | #include <atomic.h>
|
|---|
| 10 |
|
|---|
| 11 | typedef void (*smp_call_func_t)(void *);
|
|---|
| 12 |
|
|---|
| 13 | typedef struct smp_call {
|
|---|
| 14 | smp_call_func_t func;
|
|---|
| 15 | void *arg;
|
|---|
| 16 | link_t calls_link;
|
|---|
| 17 | atomic_t pending;
|
|---|
| 18 | } smp_call_t;
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | extern void smp_call(unsigned int, smp_call_func_t, void *);
|
|---|
| 23 | extern void smp_call_async(unsigned int, smp_call_func_t, void *, smp_call_t *);
|
|---|
| 24 | extern void smp_call_wait(smp_call_t *);
|
|---|
| 25 |
|
|---|
| 26 | extern void smp_call_init(void);
|
|---|
| 27 |
|
|---|
| 28 | #ifdef CONFIG_SMP
|
|---|
| 29 | extern void smp_call_ipi_recv(void);
|
|---|
| 30 | extern void arch_smp_call_ipi(unsigned int);
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | #endif /* KERN_SMP_CALL_H_ */
|
|---|
| 37 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.