summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/ARM64
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-20 12:32:38 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-20 12:38:04 +0100
commit7d2a7e7cab23b8217498866615a3719e5d3980ee (patch)
tree75b87af3d8be10f29f2d5c69af17a9455c90df73 /dev/Kernel/HALKit/ARM64
parentaa8a096ad429640e752d69a89c572da35493d4c0 (diff)
NeOS: Namespace change from 'Kernel' to 'NeOS'
ADD: Start defining the Workstation's HPFS (High-Performance File System) Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/HALKit/ARM64')
-rw-r--r--dev/Kernel/HALKit/ARM64/APM/APM+IO.cc2
-rw-r--r--dev/Kernel/HALKit/ARM64/ApplicationProcessor.h4
-rw-r--r--dev/Kernel/HALKit/ARM64/HalACPIFactoryInterface.cc4
-rw-r--r--dev/Kernel/HALKit/ARM64/HalApplicationProcessor.cc4
-rw-r--r--dev/Kernel/HALKit/ARM64/HalDebugOutput.cc6
-rw-r--r--dev/Kernel/HALKit/ARM64/HalKernelMain.cc8
-rw-r--r--dev/Kernel/HALKit/ARM64/HalKernelPanic.cc6
-rw-r--r--dev/Kernel/HALKit/ARM64/HalPagingMgrARM64.cc4
-rw-r--r--dev/Kernel/HALKit/ARM64/HalSchedulerCoreARM64.cc4
-rw-r--r--dev/Kernel/HALKit/ARM64/HalSchedulerCorePrimitivesARM64.cc4
-rw-r--r--dev/Kernel/HALKit/ARM64/Paging.h8
-rw-r--r--dev/Kernel/HALKit/ARM64/Processor.h10
-rw-r--r--dev/Kernel/HALKit/ARM64/Storage/MFlash+IO.cc4
13 files changed, 34 insertions, 34 deletions
diff --git a/dev/Kernel/HALKit/ARM64/APM/APM+IO.cc b/dev/Kernel/HALKit/ARM64/APM/APM+IO.cc
index 2ed2444d..a3366da4 100644
--- a/dev/Kernel/HALKit/ARM64/APM/APM+IO.cc
+++ b/dev/Kernel/HALKit/ARM64/APM/APM+IO.cc
@@ -7,7 +7,7 @@
#include <Mod/APM/APM.h>
#include <KernelKit/LPC.h>
-using namespace Kernel;
+using namespace NeOS;
/// @brief Send APM command to it's space.
/// @param base_dma the IO base port.
diff --git a/dev/Kernel/HALKit/ARM64/ApplicationProcessor.h b/dev/Kernel/HALKit/ARM64/ApplicationProcessor.h
index e987cf81..d263f9b8 100644
--- a/dev/Kernel/HALKit/ARM64/ApplicationProcessor.h
+++ b/dev/Kernel/HALKit/ARM64/ApplicationProcessor.h
@@ -13,7 +13,7 @@
/* INITIALIZE THE GIC ON CPU. */
/************************************************** */
-namespace Kernel
+namespace NeOS
{
- BOOL mp_initialize_gic(Kernel::Void);
+ BOOL mp_initialize_gic(NeOS::Void);
} \ No newline at end of file
diff --git a/dev/Kernel/HALKit/ARM64/HalACPIFactoryInterface.cc b/dev/Kernel/HALKit/ARM64/HalACPIFactoryInterface.cc
index dd62d439..6dcfa9a2 100644
--- a/dev/Kernel/HALKit/ARM64/HalACPIFactoryInterface.cc
+++ b/dev/Kernel/HALKit/ARM64/HalACPIFactoryInterface.cc
@@ -10,7 +10,7 @@
#include <KernelKit/MemoryMgr.h>
#include <Mod/APM/APM.h>
-namespace Kernel
+namespace NeOS
{
ACPIFactoryInterface::ACPIFactoryInterface(VoidPtr rsp_ptr)
: fRsdp(rsp_ptr), fEntries(0)
@@ -28,4 +28,4 @@ namespace Kernel
{
apm_send_io_command(kAPMPowerCommandReboot, 0);
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/HALKit/ARM64/HalApplicationProcessor.cc b/dev/Kernel/HALKit/ARM64/HalApplicationProcessor.cc
index c2bea7e3..415ad5b1 100644
--- a/dev/Kernel/HALKit/ARM64/HalApplicationProcessor.cc
+++ b/dev/Kernel/HALKit/ARM64/HalApplicationProcessor.cc
@@ -28,7 +28,7 @@
// ================================================================= //
-namespace Kernel
+namespace NeOS
{
struct PROCESS_CONTROL_BLOCK final
{
@@ -133,4 +133,4 @@ namespace Kernel
return NO;
}
-} // namespace Kernel \ No newline at end of file
+} // namespace NeOS \ No newline at end of file
diff --git a/dev/Kernel/HALKit/ARM64/HalDebugOutput.cc b/dev/Kernel/HALKit/ARM64/HalDebugOutput.cc
index ae3c0e44..65a7e79a 100644
--- a/dev/Kernel/HALKit/ARM64/HalDebugOutput.cc
+++ b/dev/Kernel/HALKit/ARM64/HalDebugOutput.cc
@@ -9,7 +9,7 @@
#include <NewKit/Utils.h>
#include <NewKit/New.h>
-namespace Kernel
+namespace NeOS
{
EXTERN_C void ke_io_write(const Char* bytes)
{
@@ -76,8 +76,8 @@ namespace Kernel
TerminalDevice TerminalDevice::The() noexcept
{
- TerminalDevice out(Kernel::ke_io_write, Kernel::ke_io_read);
+ TerminalDevice out(NeOS::ke_io_write, NeOS::ke_io_read);
return out;
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/HALKit/ARM64/HalKernelMain.cc b/dev/Kernel/HALKit/ARM64/HalKernelMain.cc
index 40089c2d..afb1cc0e 100644
--- a/dev/Kernel/HALKit/ARM64/HalKernelMain.cc
+++ b/dev/Kernel/HALKit/ARM64/HalKernelMain.cc
@@ -19,7 +19,7 @@
#include <CFKit/Property.h>
EXTERN_C void hal_init_platform(
- Kernel::HEL::BootInfoHeader* handover_hdr)
+ NeOS::HEL::BootInfoHeader* handover_hdr)
{
/************************************************** */
@@ -39,12 +39,12 @@ EXTERN_C void hal_init_platform(
/************************************** */
kKernelBitMpSize = kHandoverHeader->f_BitMapSize;
- kKernelBitMpStart = reinterpret_cast<Kernel::VoidPtr>(
- reinterpret_cast<Kernel::UIntPtr>(kHandoverHeader->f_BitMapStart));
+ kKernelBitMpStart = reinterpret_cast<NeOS::VoidPtr>(
+ reinterpret_cast<NeOS::UIntPtr>(kHandoverHeader->f_BitMapStart));
/// @note do initialize the interrupts after it.
- Kernel::mp_initialize_gic();
+ NeOS::mp_initialize_gic();
while (YES)
{
diff --git a/dev/Kernel/HALKit/ARM64/HalKernelPanic.cc b/dev/Kernel/HALKit/ARM64/HalKernelPanic.cc
index d7884682..cdf6e1b1 100644
--- a/dev/Kernel/HALKit/ARM64/HalKernelPanic.cc
+++ b/dev/Kernel/HALKit/ARM64/HalKernelPanic.cc
@@ -18,7 +18,7 @@
/* Each error code is attributed with an ID, which will prompt a string onto the
* screen. Wait for debugger... */
-namespace Kernel
+namespace NeOS
{
/// @brief Dumping factory class.
class RecoveryFactory final
@@ -31,7 +31,7 @@ namespace Kernel
/// @brief Stops execution of the kernel.
/// @param id kernel stop ID.
/***********************************************************************************/
- Void ke_panic(const Kernel::Int32& id, const Char* message)
+ Void ke_panic(const NeOS::Int32& id, const Char* message)
{
fb_init();
@@ -77,4 +77,4 @@ namespace Kernel
ke_panic(RUNTIME_CHECK_FAILED, file); // Runtime Check failed
}
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/HALKit/ARM64/HalPagingMgrARM64.cc b/dev/Kernel/HALKit/ARM64/HalPagingMgrARM64.cc
index b565409f..e04b77cd 100644
--- a/dev/Kernel/HALKit/ARM64/HalPagingMgrARM64.cc
+++ b/dev/Kernel/HALKit/ARM64/HalPagingMgrARM64.cc
@@ -10,7 +10,7 @@
#include <HALKit/ARM64/Paging.h>
#include <HALKit/ARM64/Processor.h>
-namespace Kernel::HAL
+namespace NeOS::HAL
{
typedef UInt32 PageTableIndex;
@@ -83,4 +83,4 @@ namespace Kernel::HAL
return 0;
}
-} // namespace Kernel::HAL
+} // namespace NeOS::HAL
diff --git a/dev/Kernel/HALKit/ARM64/HalSchedulerCoreARM64.cc b/dev/Kernel/HALKit/ARM64/HalSchedulerCoreARM64.cc
index 629e4eca..55c8aab5 100644
--- a/dev/Kernel/HALKit/ARM64/HalSchedulerCoreARM64.cc
+++ b/dev/Kernel/HALKit/ARM64/HalSchedulerCoreARM64.cc
@@ -6,7 +6,7 @@
#include <KernelKit/UserProcessScheduler.h>
-namespace Kernel
+namespace NeOS
{
/// @brief Wakes up thread.
/// Wakes up thread from the hang state.
@@ -21,4 +21,4 @@ namespace Kernel
{
NE_UNUSED(stack);
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/HALKit/ARM64/HalSchedulerCorePrimitivesARM64.cc b/dev/Kernel/HALKit/ARM64/HalSchedulerCorePrimitivesARM64.cc
index 00a11fac..3a9b7074 100644
--- a/dev/Kernel/HALKit/ARM64/HalSchedulerCorePrimitivesARM64.cc
+++ b/dev/Kernel/HALKit/ARM64/HalSchedulerCorePrimitivesARM64.cc
@@ -7,7 +7,7 @@
#include <HALKit/ARM64/Processor.h>
#include <KernelKit/UserProcessScheduler.h>
-namespace Kernel
+namespace NeOS
{
/***********************************************************************************/
/// @brief Unimplemented function (crashes by default)
@@ -32,4 +32,4 @@ namespace Kernel
return stack_ptr->SP != 0 && stack_ptr->BP != 0;
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/HALKit/ARM64/Paging.h b/dev/Kernel/HALKit/ARM64/Paging.h
index c27b982b..3c24f757 100644
--- a/dev/Kernel/HALKit/ARM64/Paging.h
+++ b/dev/Kernel/HALKit/ARM64/Paging.h
@@ -56,7 +56,7 @@
M, N \
}
-namespace Kernel::HAL
+namespace NeOS::HAL
{
struct PACKED PTE_4KB final
{
@@ -109,12 +109,12 @@ namespace Kernel::HAL
auto mm_alloc_bitmap(Boolean wr, Boolean user, SizeT size, Bool is_page) -> VoidPtr;
auto mm_free_bitmap(VoidPtr page_ptr) -> Bool;
-} // namespace Kernel::HAL
+} // namespace NeOS::HAL
-namespace Kernel
+namespace NeOS
{
typedef HAL::PTE_4KB PTE;
typedef HAL::PDE_4KB PDE;
-} // namespace Kernel
+} // namespace NeOS
EXTERN_C void hal_flush_tlb();
diff --git a/dev/Kernel/HALKit/ARM64/Processor.h b/dev/Kernel/HALKit/ARM64/Processor.h
index 023b6bfb..4dba5a8b 100644
--- a/dev/Kernel/HALKit/ARM64/Processor.h
+++ b/dev/Kernel/HALKit/ARM64/Processor.h
@@ -13,7 +13,7 @@
#define kCPUBackendName "ARMv8"
-namespace Kernel::HAL
+namespace NeOS::HAL
{
struct PACKED Register64 final
{
@@ -81,11 +81,11 @@ namespace Kernel::HAL
{
asm volatile("wfi");
}
-} // namespace Kernel::HAL
+} // namespace NeOS::HAL
-inline Kernel::VoidPtr kKernelBitMpStart = nullptr;
-inline Kernel::UIntPtr kKernelBitMpSize = 0UL;
+inline NeOS::VoidPtr kKernelBitMpStart = nullptr;
+inline NeOS::UIntPtr kKernelBitMpSize = 0UL;
-inline Kernel::VoidPtr kKernelPhysicalStart = nullptr;
+inline NeOS::VoidPtr kKernelPhysicalStart = nullptr;
#include <HALKit/ARM64/Paging.h>
diff --git a/dev/Kernel/HALKit/ARM64/Storage/MFlash+IO.cc b/dev/Kernel/HALKit/ARM64/Storage/MFlash+IO.cc
index f5553f3e..18071fea 100644
--- a/dev/Kernel/HALKit/ARM64/Storage/MFlash+IO.cc
+++ b/dev/Kernel/HALKit/ARM64/Storage/MFlash+IO.cc
@@ -16,7 +16,7 @@
#define kMaxFlashSlots (8U)
-namespace Kernel
+namespace NeOS
{
/// /Mount/Flash/n
constexpr auto kFlashBridgeMagic = "FLSH";
@@ -79,6 +79,6 @@ namespace Kernel
return YES;
}
-} // namespace Kernel
+} // namespace NeOS
#endif // if NE_USE_MBCI_FLASH