NeKernel dev
Loading...
Searching...
No Matches
AP.h
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5 File: AP.h
6 Purpose: RISC-V hardware threads.
7
8 Revision History:
9
10 30/01/24: Added file (amlel)
11
12======================================== */
13
14#pragma once
15
16#include <NeKit/Config.h>
17
18namespace Kernel {
19typedef Int64 hal_ap_kind;
20
21typedef struct HAL_HARDWARE_THREAD {
29
35} // namespace Kernel
#define EXTERN_C
UPS inline definitions.
Definition Device.h:12
EXTERN_C Kernel::Void hal_set_pc_to_hart(HAL_HARDWARE_THREAD *hart, Kernel::VoidPtr epc)
Set PC to specific hart.
void Void
Definition Config.h:87
__INT64_TYPE__ Int64
Definition Config.h:46
Kernel::Int32 hal_ap_kind
hardware thread indentification type.
Definition AP.h:22
__UINT8_TYPE__ UInt8
Definition Config.h:55
__UINT32_TYPE__ UInt32
Definition Config.h:44
void * VoidPtr
Definition Config.h:33
__UINTPTR_TYPE__ UIntPtr
Definition Config.h:62
Hardware thread information structure.
Definition HalApplicationProcessor.cc:34
Kernel::UIntPtr fFramePtr
Definition AP.h:28
Kernel::UIntPtr fStackPtr
Definition AP.h:27
Kernel::UIntPtr fStartAddress
Definition AP.h:26
Kernel::UInt32 fPageMemoryFlags
Definition AP.h:30
Kernel::UInt8 fPrivileged
Definition AP.h:29
hal_ap_kind fIdentNumber
Definition AP.h:31