summaryrefslogtreecommitdiffstats
path: root/src/arch/riscv/mcall.c
blob: 8e788a7c7015b9e202f57080318ca19c73d6b3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: BSD-4-Clause-UC */
/* This file is part of the coreboot project. */

#include <mcall.h>
#include <string.h>
#include <vm.h>

void hls_init(uint32_t hart_id, void *fdt)
{
	memset(HLS(), 0, sizeof(*HLS()));
	HLS()->fdt = fdt;
	HLS()->hart_id = hart_id;

	mtime_init();
}