haiku/headers/private/kernel/arch/riscv64/Clint.h
X512 d472f38a49 riscv64: update hardware definition headers
Change-Id: I0c84f1d5389842d4591cb1548793e08155ba3666
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4311
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-06 17:33:53 +00:00

24 lines
415 B
C

/*
* Copyright 2021, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _CLINT_H_
#define _CLINT_H_
#include <SupportDefs.h>
// core local interruptor
struct ClintRegs
{
uint32 msip [4096]; // machine software interrupt pending, per CPU core
uint64 mtimecmp[4095]; // per CPU core
uint64 mtime; // @0xBFF8
};
extern ClintRegs* volatile gClintRegs;
#endif // _CLINT_H_