summaryrefslogtreecommitdiff
path: root/platform/generic/thead/thead_c9xx_errata_tlb_flush.c
blob: 755899ac1b5d50a66e4b30a65408a0a0066a2e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Authors:
 *   Inochi Amaoto <[email protected]>
 *
 */

#include <sbi/riscv_encoding.h>
#include <sbi/riscv_asm.h>

void _thead_tlb_flush_fixup_trap_handler(void);

void thead_register_tlb_flush_trap_handler(void)
{
	csr_write(CSR_MTVEC, &_thead_tlb_flush_fixup_trap_handler);
}