kernel: Fill remaining riscv64 architecture headers

This commit is contained in:
Alexander von Gluck IV
2019-04-04 09:09:49 -05:00
parent 04fbff9fdd
commit 566e253f24
6 changed files with 93 additions and 0 deletions
@@ -0,0 +1,16 @@
/*
* Copyright 2010, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_ARCH_RISCV64_DEBUG_H
#define _KERNEL_ARCH_RISCV64_DEBUG_H
#include <SupportDefs.h>
struct arch_debug_registers {
};
#endif // _KERNEL_ARCH_RISCV64_DEBUG_H
@@ -0,0 +1,12 @@
/*
* Copyright 2005, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_ARCH_RISCV64_SYSTEM_INFO_H
#define _KERNEL_ARCH_RISCV64_SYSTEM_INFO_H
/* nothing to be seen here yet */
#endif /* _KRENEL_ARCH_RISCV64_SYSTEM_INFO_H */
@@ -0,0 +1,26 @@
/*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_ARCH_RISCV64_VM_TRANSLATION_MAP_H
#define _KERNEL_ARCH_RISCV64_VM_TRANSLATION_MAP_H
#include <arch/vm_translation_map.h>
#ifdef __cplusplus
extern "C" {
#endif
void riscv64_translation_map_change_asid(VMTranslationMap *map);
status_t riscv64_map_address_range(addr_t virtualAddress,
phys_addr_t physicalAddress, size_t size);
void riscv64_unmap_address_range(addr_t virtualAddress, size_t size);
status_t riscv64_remap_address_range(addr_t *virtualAddress, size_t size,
bool unmap);
#ifdef __cplusplus
}
#endif
#endif /* _KERNEL_ARCH_RISCV64_VM_TRANSLATION_MAP_H */
@@ -0,0 +1,18 @@
/*
* Copyright 2007, Travis Geiselbrecht. All rights reserved.
* Copyright 2019, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_ARCH_RISCV64_COMMPAGE_DEFS_H
#define _SYSTEM_ARCH_RISCV64_COMMPAGE_DEFS_H
#ifndef _SYSTEM_COMMPAGE_DEFS_H
# error Must not be included directly. Include <commpage_defs.h> instead!
#endif
/*
#define COMMPAGE_ENTRY_RISCV64_SYSCALL (COMMPAGE_ENTRY_FIRST_ARCH_SPECIFIC + 0)
#define COMMPAGE_ENTRY_RISCV64_MEMCPY (COMMPAGE_ENTRY_FIRST_ARCH_SPECIFIC + 1)
*/
#endif /* _SYSTEM_ARCH_RISCV64_COMMPAGE_DEFS_H */
@@ -0,0 +1,21 @@
/*
* Copyright 2018 Haiku Inc. All Rights Reserved.
* Copyright 2006, Ingo Weinhold <[email protected]>.
* Copyright 2019, Adrien Destugues <[email protected]>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_ARCH_REAL_TIME_DATA_H
#define _KERNEL_ARCH_REAL_TIME_DATA_H
#include <StorageDefs.h>
#include <SupportDefs.h>
struct arch_real_time_data {
bigtime_t system_time_offset;
uint32 system_time_conversion_factor;
uint32 _padding;
};
#endif /* _KERNEL_ARCH_REAL_TIME_DATA_H */