AquilaOS documentation
How it works, and its code
Toggle main menu visibility
Loading...
Searching...
No Matches
smp.c
Go to the documentation of this file.
1
6
7
#include <
core/system.h
>
8
#include <
sys/cpu.h
>
9
#include <
sys/lock.h
>
10
11
/*
12
* Makes another CPU enter the kernel. With one CPU, there's none.
13
*/
14
void
arch_cpu_kick
(
struct
cpu
*
cpu
)
15
{
16
}
17
18
/* Waits a little while another CPU holds the kernel lock: never, with
19
* one CPU. */
20
void
arch_lock_spin
(
void
)
21
{
22
}
23
24
/* Called once this CPU has taken the kernel lock: nothing to do. */
25
void
arch_lock_taken
(
void
)
26
{
27
}
arch_lock_spin
void arch_lock_spin(void)
Runs in the kernel lock's wait loop, on each turn.
Definition
smp.c:20
arch_cpu_kick
void arch_cpu_kick(struct cpu *cpu)
Makes another CPU enter the kernel now, with an inter-processor interrupt: to run a thread that just ...
Definition
smp.c:14
arch_lock_taken
void arch_lock_taken(void)
Runs once this CPU has taken the kernel lock.
Definition
smp.c:25
system.h
cpu.h
lock.h
cpu
A processor, and what runs on it.
Definition
cpu.h:11
kernel
arch
aarch64
sys
smp.c
Generated by
1.18.0