repo.or.cz
/
coreboot2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mb/starlabs/{lite_adl,byte_adl}: Don't select MAINBOARD_HAS_TPM2
[coreboot2.git]
/
src
/
arch
/
riscv
/
mcall.c
blob
7f846bd83e73d9d3b95800461df612e126da4c61
1
/* SPDX-License-Identifier: BSD-4-Clause-UC */
2
3
#include <mcall.h>
4
#include <string.h>
5
#include <vm.h>
6
7
void
hls_init
(
uint32_t
hart_id
,
void
*
fdt
)
8
{
9
memset
(
HLS
(),
0
,
sizeof
(*
HLS
()));
10
HLS
()->
fdt
=
fdt
;
11
HLS
()->
hart_id
=
hart_id
;
12
13
mtime_init
();
14
}