summaryrefslogtreecommitdiff
path: root/core/riscv-rv32i/cpu.c
blob: 911d170801d48ad4827a1e6daadfc5f899a06eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright 2019 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * Set up the RISC-V core
 */

#include "cpu.h"

void cpu_init(void)
{
	/* bit3: Global interrupt enable (M-mode) */
	asm volatile("csrsi mstatus, 0x8");
}