summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/PowerPC
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-29 19:16:19 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-29 19:16:19 +0100
commit43ae417266c3127bbae35527c95c26e01ed50bd9 (patch)
treeefbbaa92ab7e11a69bd295cba7da65f487572836 /Private/HALKit/PowerPC
parent7e5be1572c043484293ee0cdd840dd41f54e87ee (diff)
Kernel: See below.
- Add HPET header. - Add note for ApplicationRef. - Update PowerPC and x86 Stackframes. - Add #UD handler inside interrupt descriptor in x86. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/HALKit/PowerPC')
-rw-r--r--Private/HALKit/PowerPC/Processor.hpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/Private/HALKit/PowerPC/Processor.hpp b/Private/HALKit/PowerPC/Processor.hpp
index be929fd7..36731d57 100644
--- a/Private/HALKit/PowerPC/Processor.hpp
+++ b/Private/HALKit/PowerPC/Processor.hpp
@@ -2,6 +2,8 @@
Copyright Mahrouss Logic
+ Purpose: PowerPC processor header.
+
------------------------------------------- */
#pragma once
@@ -9,12 +11,14 @@
#include <NewKit/Defines.hpp>
#include <NewKit/Utils.hpp>
-#define __aligned __attribute__((aligned(4)))
+#define __PPC_ALIGN __attribute__((aligned(4)))
namespace NewOS::HAL {
typedef UIntPtr Reg;
-struct __aligned StackFrame {
+struct __PPC_ALIGN StackFrame {
+ Reg IntNum;
+ Reg Exception;
Reg R0;
Reg R1;
Reg R2;
@@ -23,13 +27,20 @@ struct __aligned StackFrame {
Reg R5;
Reg R6;
Reg R7;
- Reg ID; // R8
+ Reg R8;
+ Reg ProgramCounter;
+ Reg StackPointer;
+ /// @brief Process Context
+ Reg PC;
+ /// @brief General Context
+ Reg GC;
};
typedef StackFrame* StackFramePtr;
inline void rt_halt() {
while (1) {
+
}
}