summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 19:57:33 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 19:57:33 +0100
commitba7b3ed69cd24970a28b72c54982735cd120e663 (patch)
tree934b7645435ab1bfd2d8eb99fa861fc09e3dd5b4 /dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
parent2205e801a6e84238dc8cbbb8f9de5a675eae1d81 (diff)
kernel: breaking: Change namespace from NeOS to Kernel.
sched: Fix redundancy in NeKernel's user scheduler macros, refactored the other files using the redundant macros too. part one of a series of commit for NeKernel. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc')
-rw-r--r--dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc b/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
index 5880cc7c..3d0cee00 100644
--- a/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
+++ b/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
@@ -34,7 +34,7 @@
///////////////////////////////////////////////////////////////////////////////////////
-namespace NeOS::HAL
+namespace Kernel::HAL
{
struct PROCESS_APIC_MADT;
struct PROCESS_CONTROL_BLOCK;
@@ -118,10 +118,10 @@ namespace NeOS::HAL
Void hal_send_start_ipi(UInt32 target, UInt32 apic_id)
{
- NeOS::ke_dma_write<UInt32>(target, kAPIC_ICR_High, apic_id << 24);
- NeOS::ke_dma_write<UInt32>(target, kAPIC_ICR_Low, 0x00000500 | 0x00004000 | 0x00000000);
+ Kernel::ke_dma_write<UInt32>(target, kAPIC_ICR_High, apic_id << 24);
+ Kernel::ke_dma_write<UInt32>(target, kAPIC_ICR_Low, 0x00000500 | 0x00004000 | 0x00000000);
- while (NeOS::ke_dma_read<UInt32>(target, kAPIC_ICR_Low) & 0x1000)
+ while (Kernel::ke_dma_read<UInt32>(target, kAPIC_ICR_Low) & 0x1000)
{
;
}
@@ -136,10 +136,10 @@ namespace NeOS::HAL
/***********************************************************************************/
Void hal_send_sipi(UInt32 target, UInt32 apic_id, UInt8 vector)
{
- NeOS::ke_dma_write<UInt32>(target, kAPIC_ICR_High, apic_id << 24);
- NeOS::ke_dma_write<UInt32>(target, kAPIC_ICR_Low, 0x00000600 | 0x00004000 | 0x00000000 | vector);
+ Kernel::ke_dma_write<UInt32>(target, kAPIC_ICR_High, apic_id << 24);
+ Kernel::ke_dma_write<UInt32>(target, kAPIC_ICR_Low, 0x00000600 | 0x00004000 | 0x00000000 | vector);
- while (NeOS::ke_dma_read<UInt32>(target, kAPIC_ICR_Low) & 0x1000)
+ while (Kernel::ke_dma_read<UInt32>(target, kAPIC_ICR_Low) & 0x1000)
{
NE_UNUSED(0);
}
@@ -239,7 +239,7 @@ namespace NeOS::HAL
hal_send_start_ipi(kApicBaseAddress, kAPICLocales[kSMPCount]);
- HardwareTimer timer(NeOS::rtl_ms(10));
+ HardwareTimer timer(Kernel::rtl_ms(10));
timer.Wait();
/// TODO: HAL helper to create an address.
@@ -266,6 +266,6 @@ namespace NeOS::HAL
/// TODO: Notify Boot AP that it must start.
}
}
-} // namespace NeOS::HAL
+} // namespace Kernel::HAL
///////////////////////////////////////////////////////////////////////////////////////