1/*
2 * Copyright 2021, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5
6#ifndef _CLINT_H_
7#define _CLINT_H_
8
9#include <SupportDefs.h>
10
11
12// core local interruptor
13struct ClintRegs
14{
15	uint32 msip    [4096]; // machine software interrupt pending, per CPU core
16	uint64 mtimecmp[4095]; // per CPU core
17	uint64 mtime;          // @0xBFF8
18};
19
20extern ClintRegs* volatile gClintRegs;
21
22
23#endif	// _CLINT_H_
24