coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smp.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef _RISCV_SMP_H
4
#define _RISCV_SMP_H
5
6
/*
7
* This function is used to pause smp. Only the hart with hartid equal
8
* to working_hartid can be returned from smp_pause, other harts will
9
* enter halt and wait for wakeup
10
*/
11
void
smp_pause
(
int
working_hartid);
12
13
/*
14
* This function is used to wake up the harts that are halted by the
15
* smp_pause function. And this function will not return, all hart will
16
* jump to fn execution, and arg is the argument of the function fn.
17
*/
18
void
smp_resume
(
void
(*fn)(
void
*),
void
*
arg
);
19
20
#endif
arg
struct bootblock_arg arg
Definition:
decompressor.c:22
smp_resume
void smp_resume(void(*fn)(void *), void *arg)
Definition:
smp.c:54
smp_pause
void smp_pause(int working_hartid)
Definition:
smp.c:10
src
arch
riscv
include
arch
smp
smp.h
Generated by
1.9.1