AquilaOS documentation
How it works, and its code
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 */
14void 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. */
21{
22}
23
24/* Called once this CPU has taken the kernel lock: nothing to do. */
26{
27}
void arch_lock_spin(void)
Runs in the kernel lock's wait loop, on each turn.
Definition smp.c:20
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
void arch_lock_taken(void)
Runs once this CPU has taken the kernel lock.
Definition smp.c:25
A processor, and what runs on it.
Definition cpu.h:11