kernel/arch/platform: implement for riscv64
Change-Id: Id1839ef39d927e6a2017c8b8ac3482d9eeb00fa1 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4059 Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
@@ -19,19 +19,11 @@
|
||||
|
||||
|
||||
enum {
|
||||
kPlatform1None,
|
||||
kPlatform1Riscv,
|
||||
kPlatform1Sbi,
|
||||
kPlatformNone,
|
||||
kPlatformMNative,
|
||||
kPlatformSbi,
|
||||
};
|
||||
|
||||
enum {
|
||||
kPlatform2None,
|
||||
kPlatform2Riscv,
|
||||
kPlatform2Efi,
|
||||
kPlatform2UBoot,
|
||||
};
|
||||
|
||||
|
||||
enum {
|
||||
kUartKindNone,
|
||||
kUartKind8250,
|
||||
@@ -57,8 +49,8 @@ typedef struct {
|
||||
uint32 num_virtual_ranges_to_keep;
|
||||
addr_range virtual_ranges_to_keep[MAX_VIRTUAL_RANGES_TO_KEEP];
|
||||
|
||||
uint32 platform1;
|
||||
uint32 platform2;
|
||||
// MNative hooks, or SBI
|
||||
uint32 machine_platform;
|
||||
|
||||
uint bootHart;
|
||||
uint64 timerFrequrency; // in Hz
|
||||
|
||||
Reference in New Issue
Block a user