summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
diff options
context:
space:
mode:
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
///////////////////////////////////////////////////////////////////////////////////////