xref: /haiku/headers/private/kernel/arch/riscv64/Clint.h (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
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 	uint8  unknown1[0x4000];
16 	uint64 mTimeCmp[4095]; // per CPU core, but not implemented in temu
17 	uint64 mTime;          // @0xBFF8
18 };
19 
20 extern ClintRegs* volatile gClintRegs;
21 
22 
23 #endif	// _CLINT_H_
24