diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-06 17:36:40 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-06 17:36:57 +0200 |
| commit | 4019b870041d1ac50a48ba9e7a981df1afde96e6 (patch) | |
| tree | f2ecd32a5c301ae2ab6c7d585fe91484bf4304a3 /dev | |
| parent | 87082c29765034e804b77f18dbe3964b032d0167 (diff) | |
Code refactors and improvements.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/ZKA/HALKit/AMD64/HalDescriptorLoader.cxx | 2 | ||||
| -rw-r--r-- | dev/ZKA/HALKit/AMD64/Processor.hxx | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalDescriptorLoader.cxx b/dev/ZKA/HALKit/AMD64/HalDescriptorLoader.cxx index 2ab1050b..bddd0eb4 100644 --- a/dev/ZKA/HALKit/AMD64/HalDescriptorLoader.cxx +++ b/dev/ZKA/HALKit/AMD64/HalDescriptorLoader.cxx @@ -50,7 +50,7 @@ namespace Kernel::HAL for (UInt16 idt_indx = 0; idt_indx < (kKernelIdtSize); ++idt_indx) { - Detail::kInterruptVectorTable[idt_indx].Selector = kGdtCodeSelector; + Detail::kInterruptVectorTable[idt_indx].Selector = kIDTSelector; Detail::kInterruptVectorTable[idt_indx].Ist = 0; Detail::kInterruptVectorTable[idt_indx].TypeAttributes = kInterruptGate; Detail::kInterruptVectorTable[idt_indx].OffsetLow = ((UIntPtr)ptr_ivt[idt_indx] & 0xFFFF); diff --git a/dev/ZKA/HALKit/AMD64/Processor.hxx b/dev/ZKA/HALKit/AMD64/Processor.hxx index 8c05d37c..fd3e7b0a 100644 --- a/dev/ZKA/HALKit/AMD64/Processor.hxx +++ b/dev/ZKA/HALKit/AMD64/Processor.hxx @@ -27,10 +27,10 @@ EXTERN_C #define IsActiveLow(FLG) (FLG & 2) #define IsLevelTriggered(FLG) (FLG & 8) -#define kInterruptGate (0x8E) -#define kTrapGate (0xEF) -#define kTaskGate (0b10001100) -#define kGdtCodeSelector (0x08) +#define kInterruptGate (0x8E) +#define kTrapGate (0xEF) +#define kTaskGate (0b10001100) +#define kIDTSelector (0x08) namespace Kernel { @@ -56,9 +56,9 @@ namespace Kernel::HAL enum { eFlagsPresent = 0x01, - eFlagsRw = 0x02, - eFlagsUser = 0x04, - eFlagsCount = 0x3, + eFlagsRw = 0x02, + eFlagsUser = 0x04, + eFlagsCount = 0x3, }; /// @brief Updates a PTE from pd_base. |
