xref: /haiku/headers/private/kernel/arch/riscv64/Clint.h (revision 3af8011358bd4c624a0979336d48dabb466171ed)
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
13 struct 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 
20 extern ClintRegs* volatile gClintRegs;
21 
22 
23 #endif	// _CLINT_H_
24