diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-28 13:05:28 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-28 13:05:28 +0100 |
| commit | 84cc6ff6f43b48383248282743efc514946db641 (patch) | |
| tree | fa7f9099b87e235ba122d17b6a3b39234cd39883 /Private/Source | |
| parent | 3d798c5fc738768493df925d1f5d72256f2dec4e (diff) | |
Kernel: :boom: breaking changes, Update API and the HCORE based
macros, rename HCore to NewOS.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Source')
40 files changed, 93 insertions, 93 deletions
diff --git a/Private/Source/Crc32.cxx b/Private/Source/Crc32.cxx index eab12c37..27cbae7f 100644 --- a/Private/Source/Crc32.cxx +++ b/Private/Source/Crc32.cxx @@ -9,7 +9,7 @@ // @file CRC32.cpp // @brief Check sequence implementation. -namespace HCore { +namespace NewOS { /// @brief The CRC32 table. UInt kCrcTbl[kCrcCnt] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, @@ -68,4 +68,4 @@ UInt ke_calculate_crc32(const Char *p, UInt len) noexcept { // return (~crc); also works, does the same thing. return (crc ^ 0xffffffff); } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/CxxAbi.cxx b/Private/Source/CxxAbi.cxx index 730e9f81..41df73fd 100644 --- a/Private/Source/CxxAbi.cxx +++ b/Private/Source/CxxAbi.cxx @@ -13,7 +13,7 @@ atexit_func_entry_t __atexit_funcs[kDSOMaxObjects]; uarch_t __atexit_func_count; extern "C" void __cxa_pure_virtual() { - HCore::kcout << "NewKernel.exe: C++ placeholder method.\n"; + NewOS::kcout << "NewKernel.exe: C++ placeholder method.\n"; } extern "C" void ___chkstk_ms() { diff --git a/Private/Source/DriveManager.cxx b/Private/Source/DriveManager.cxx index 00e1d94d..26cab611 100644 --- a/Private/Source/DriveManager.cxx +++ b/Private/Source/DriveManager.cxx @@ -7,4 +7,4 @@ #include <KernelKit/DebugOutput.hpp> #include <KernelKit/DriveManager.hxx> -namespace HCore {} // namespace HCore +namespace NewOS {} // namespace NewOS diff --git a/Private/Source/FileManager.cxx b/Private/Source/FileManager.cxx index 4d3c9417..bbe7d30b 100644 --- a/Private/Source/FileManager.cxx +++ b/Private/Source/FileManager.cxx @@ -9,9 +9,9 @@ #include <NewKit/Utils.hpp> /// BUGS: 0 -//! @brief File manager for HCore. +//! @brief File manager for NewOS. -namespace HCore { +namespace NewOS { static FilesystemManagerInterface* kMounted = nullptr; /// @brief FilesystemManager getter. @@ -42,4 +42,4 @@ bool FilesystemManagerInterface::Mount(FilesystemManagerInterface* mountPtr) { return false; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Framebuffer.cxx b/Private/Source/Framebuffer.cxx index 9c964a3c..2682d165 100644 --- a/Private/Source/Framebuffer.cxx +++ b/Private/Source/Framebuffer.cxx @@ -19,7 +19,7 @@ * */ -using namespace HCore; +using namespace NewOS; /** * @brief Get Pixel at @@ -59,9 +59,9 @@ Ref<FramebufferContext *> &Framebuffer::Leak() { Framebuffer &Framebuffer::DrawRect(SizeT width, SizeT height, SizeT x, SizeT y, UInt32 color) { - for (HCore::SizeT i = x; i < width + x; ++i) { - for (HCore::SizeT u = y; u < height + y; ++u) { - *(((volatile HCore::UInt32 *)(m_FrameBufferAddr.Leak()->m_Base + + for (NewOS::SizeT i = x; i < width + x; ++i) { + for (NewOS::SizeT u = y; u < height + y; ++u) { + *(((volatile NewOS::UInt32 *)(m_FrameBufferAddr.Leak()->m_Base + 4 * m_FrameBufferAddr.Leak()->m_Bpp * i + 4 * u))) = color; } @@ -71,7 +71,7 @@ Framebuffer &Framebuffer::DrawRect(SizeT width, SizeT height, SizeT x, SizeT y, } Framebuffer &Framebuffer::PutPixel(SizeT x, SizeT y, UInt32 color) { - *(((volatile HCore::UInt32 *)(m_FrameBufferAddr.Leak()->m_Base + + *(((volatile NewOS::UInt32 *)(m_FrameBufferAddr.Leak()->m_Base + 4 * m_FrameBufferAddr.Leak()->m_Bpp * x + 4 * y))) = color; diff --git a/Private/Source/GUIDWizard.cxx b/Private/Source/GUIDWizard.cxx index 8befb071..90903979 100644 --- a/Private/Source/GUIDWizard.cxx +++ b/Private/Source/GUIDWizard.cxx @@ -17,7 +17,7 @@ // @brief Size of UUID. #define kUUIDSize 37 -namespace HCore::XRN::Version1 { +namespace NewOS::XRN::Version1 { auto make_sequence(const ArrayList<UShort>& uuidSeq) -> Ref<GUIDSequence*> { GUIDSequence* seq = new GUIDSequence(); MUST_PASS(seq); @@ -55,4 +55,4 @@ auto try_guid_to_string(Ref<GUIDSequence*>& seq) -> ErrorOr<Ref<StringView>> { return ErrorOr<Ref<StringView>>{-1}; } -} // namespace HCore::XRN::Version1 +} // namespace NewOS::XRN::Version1 diff --git a/Private/Source/GUIDWrapper.cxx b/Private/Source/GUIDWrapper.cxx index d7c592e5..72dbf225 100644 --- a/Private/Source/GUIDWrapper.cxx +++ b/Private/Source/GUIDWrapper.cxx @@ -6,4 +6,4 @@ #include <CFKit/GUIDWrapper.hpp> -namespace HCore::XRN {} +namespace NewOS::XRN {} diff --git a/Private/Source/HError.cxx b/Private/Source/HError.cxx index 95d38e57..d5995150 100644 --- a/Private/Source/HError.cxx +++ b/Private/Source/HError.cxx @@ -6,6 +6,6 @@ #include <KernelKit/HError.hpp> -namespace HCore { +namespace NewOS { Boolean ke_bug_check(void) noexcept { return false; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/IndexableProperty.cxx b/Private/Source/IndexableProperty.cxx index 3d5152bf..eec5f485 100644 --- a/Private/Source/IndexableProperty.cxx +++ b/Private/Source/IndexableProperty.cxx @@ -16,11 +16,11 @@ #define kMaxLenIndexer 256 -namespace HCore { +namespace NewOS { namespace Indexer { IndexProperty& IndexableProperty::LeakProperty() noexcept { return fIndex; } void IndexableProperty::AddFlag(Int16 flag) { fFlags |= flag; } void IndexableProperty::RemoveFlag(Int16 flag) { fFlags &= flag; } } // namespace Indexer -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Json.cxx b/Private/Source/Json.cxx index 26fe6c02..f91ad8b9 100644 --- a/Private/Source/Json.cxx +++ b/Private/Source/Json.cxx @@ -6,7 +6,7 @@ #include <NewKit/Json.hpp> -using namespace HCore; +using namespace NewOS; /// @brief Undefined object, is null in length. -INIT(HCore::JsonType::kUndefined, HCore::JsonType); +INIT(NewOS::JsonType::kUndefined, NewOS::JsonType); diff --git a/Private/Source/KernelCheck.cxx b/Private/Source/KernelCheck.cxx index dcf8a06d..d290ca3d 100644 --- a/Private/Source/KernelCheck.cxx +++ b/Private/Source/KernelCheck.cxx @@ -11,16 +11,16 @@ extern "C" [[noreturn]] void ke_wait_for_debugger() { while (true) { - HCore::HAL::rt_cli(); - HCore::HAL::rt_halt(); + NewOS::HAL::rt_cli(); + NewOS::HAL::rt_halt(); } } /* Each error code is attributed with an ID, which will prompt a string onto the * screen. Wait for debugger... */ -namespace HCore { -void ke_stop(const HCore::Int &id) { +namespace NewOS { +void ke_stop(const NewOS::Int &id) { kcout << "*** STOP *** \r\n"; kcout << "*** NewKernel.exe has trigerred a runtime stop. *** \r\n"; @@ -96,7 +96,7 @@ void ke_runtime_check(bool expr, const char *file, const char *line) { #endif // __DEBUG__ - HCore::ke_stop(RUNTIME_CHECK_FAILED); // Runtime Check failed + NewOS::ke_stop(RUNTIME_CHECK_FAILED); // Runtime Check failed } } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/KernelHeap.cxx b/Private/Source/KernelHeap.cxx index 39648102..cdeabb24 100644 --- a/Private/Source/KernelHeap.cxx +++ b/Private/Source/KernelHeap.cxx @@ -15,7 +15,7 @@ #define kHeapMagic 0xD4D7 -namespace HCore { +namespace NewOS { STATIC SizeT kHeapCount = 0UL; STATIC PageManager kHeapPageManager; @@ -130,4 +130,4 @@ Boolean ke_protect_ke_heap(VoidPtr heapPtr) { return false; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Network/IP.cxx b/Private/Source/Network/IP.cxx index c903dc95..04e5247d 100644 --- a/Private/Source/Network/IP.cxx +++ b/Private/Source/Network/IP.cxx @@ -7,7 +7,7 @@ #include <NetworkKit/IP.hpp> #include <NewKit/Utils.hpp> -namespace HCore { +namespace NewOS { char* RawIPAddress::Address() { return m_Addr; } RawIPAddress::RawIPAddress(char bytes[4]) { rt_copy_memory(bytes, m_Addr, 4); } @@ -91,4 +91,4 @@ bool IPFactory::IpCheckVersion4(const char* ip) { return true; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Network/NetworkDevice.cxx b/Private/Source/Network/NetworkDevice.cxx index f43ef335..da0e2bb5 100644 --- a/Private/Source/Network/NetworkDevice.cxx +++ b/Private/Source/Network/NetworkDevice.cxx @@ -6,6 +6,6 @@ #include <NetworkKit/NetworkDevice.hpp> -namespace HCore { +namespace NewOS { const char *NetworkDevice::Name() const { return "NetworkDevice"; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/New+Delete.cxx b/Private/Source/New+Delete.cxx index d8901ce0..1178630b 100644 --- a/Private/Source/New+Delete.cxx +++ b/Private/Source/New+Delete.cxx @@ -10,25 +10,25 @@ void* operator new[](size_t sz) { if (sz == 0) ++sz; - return HCore::ke_new_ke_heap(sz, true, false); + return NewOS::ke_new_ke_heap(sz, true, false); } void* operator new(size_t sz) { if (sz == 0) ++sz; - return HCore::ke_new_ke_heap(sz, true, false); + return NewOS::ke_new_ke_heap(sz, true, false); } void operator delete[](void* ptr) { if (ptr == nullptr) return; - HCore::ke_delete_ke_heap(ptr); + NewOS::ke_delete_ke_heap(ptr); } void operator delete(void* ptr) { if (ptr == nullptr) return; - HCore::ke_delete_ke_heap(ptr); + NewOS::ke_delete_ke_heap(ptr); } void operator delete(void* ptr, size_t sz) { @@ -36,5 +36,5 @@ void operator delete(void* ptr, size_t sz) { HCORE_UNUSED(sz); - HCore::ke_delete_ke_heap(ptr); + NewOS::ke_delete_ke_heap(ptr); } diff --git a/Private/Source/NewFS+FileManager.cxx b/Private/Source/NewFS+FileManager.cxx index 5924385d..2b5abf27 100644 --- a/Private/Source/NewFS+FileManager.cxx +++ b/Private/Source/NewFS+FileManager.cxx @@ -11,7 +11,7 @@ /// @brief NewFS File manager. /// BUGS: 0 -namespace HCore { +namespace NewOS { NewFilesystemManager::NewFilesystemManager() = default; NewFilesystemManager::~NewFilesystemManager() = default; @@ -42,6 +42,6 @@ const char* NewFilesystemHelper::Root() { return kNewFSRoot; } const char* NewFilesystemHelper::UpDir() { return kNewFSUpDir; } const char NewFilesystemHelper::Separator() { return kNewFSSeparator; } -} // namespace HCore +} // namespace NewOS #endif // ifdef __FSKIT_NEWFS__ diff --git a/Private/Source/NewFS+IO.cxx b/Private/Source/NewFS+IO.cxx index 1fd85dd8..502057e5 100644 --- a/Private/Source/NewFS+IO.cxx +++ b/Private/Source/NewFS+IO.cxx @@ -27,7 +27,7 @@ #define NEWFS_WRITE(DRV, TRAITS, MP) (*MP->DRV()) << TRAITS #define NEWFS_READ(DRV, TRAITS, MP) (*MP->DRV()) >> TRAITS -using namespace HCore; +using namespace NewOS; enum { kHCFSSubDriveA, diff --git a/Private/Source/NewFS+Journal.cxx b/Private/Source/NewFS+Journal.cxx index b693e696..4eb2feb2 100644 --- a/Private/Source/NewFS+Journal.cxx +++ b/Private/Source/NewFS+Journal.cxx @@ -14,7 +14,7 @@ #define kNewFSOpLog (4) -namespace HCore::Detail { +namespace NewOS::Detail { typedef Boolean (*NewFSRunnerType)(VoidPtr delegate); /// @brief Journal thread class. @@ -59,8 +59,8 @@ class NewFSJournalRunner final { return false; } }; -} // namespace HCore::Detail +} // namespace NewOS::Detail -using namespace HCore; +using namespace NewOS; #endif // ifdef __FSKIT_NEWFS__ diff --git a/Private/Source/PEFCodeManager.cxx b/Private/Source/PEFCodeManager.cxx index fc12d7a4..0ac703a3 100644 --- a/Private/Source/PEFCodeManager.cxx +++ b/Private/Source/PEFCodeManager.cxx @@ -15,7 +15,7 @@ #include <NewKit/OwnPtr.hpp> #include <NewKit/String.hpp> -namespace HCore { +namespace NewOS { namespace Detail { UInt32 rt_get_pef_platform(void) noexcept { #ifdef __32x0__ @@ -153,4 +153,4 @@ const char *PEFLoader::Path() { return fPath.Leak().CData(); } const char *PEFLoader::Format() { return "PEF"; } const char *PEFLoader::MIME() { return kPefApplicationMime; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/PEFSharedObjectRT.cxx b/Private/Source/PEFSharedObjectRT.cxx index 871552d7..7dadbe1d 100644 --- a/Private/Source/PEFSharedObjectRT.cxx +++ b/Private/Source/PEFSharedObjectRT.cxx @@ -1,7 +1,7 @@ /* * ======================================================== * - * HCore + * NewOS * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -24,7 +24,7 @@ ------------------------------------------- */ -using namespace HCore; +using namespace NewOS; /***********************************************************************************/ /// @file SharedObjectRT.cxx diff --git a/Private/Source/PRDT.cxx b/Private/Source/PRDT.cxx index cf3ceb64..f999dfd6 100644 --- a/Private/Source/PRDT.cxx +++ b/Private/Source/PRDT.cxx @@ -8,7 +8,7 @@ #include <NewKit/String.hpp> #include <StorageKit/PRDT.hpp> -namespace HCore { +namespace NewOS { PRDT::PRDT(const UIntPtr& physAddr) : m_PrdtAddr(physAddr) { MUST_PASS(physAddr); kcout << "PRDT::PRDT() {}\r\n"; @@ -29,4 +29,4 @@ PRDT& PRDT::operator=(const UIntPtr& prdtAddress) { m_PrdtAddr = prdtAddress; return *this; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/PageAllocator.cxx b/Private/Source/PageAllocator.cxx index 209bb9ac..9b1e05f0 100644 --- a/Private/Source/PageAllocator.cxx +++ b/Private/Source/PageAllocator.cxx @@ -9,7 +9,7 @@ #include <NewKit/PageAllocator.hpp> /// @brief Internal namespace, used internally by kernel. -namespace HCore::Detail { +namespace NewOS::Detail { VoidPtr create_page_wrapper(Boolean rw, Boolean user) { auto addr = HAL::hal_alloc_page(rw, user); @@ -44,4 +44,4 @@ bool page_disable(UIntPtr VirtualAddr) { return false; } -} // namespace HCore::Detail +} // namespace NewOS::Detail diff --git a/Private/Source/PageManager.cxx b/Private/Source/PageManager.cxx index 67aa9b7f..4c4524cd 100644 --- a/Private/Source/PageManager.cxx +++ b/Private/Source/PageManager.cxx @@ -14,7 +14,7 @@ //! null deref will throw (Page Zero detected, aborting app!) #define kProtectedRegionEnd (512) -namespace HCore { +namespace NewOS { PTEWrapper::PTEWrapper(Boolean Rw, Boolean User, Boolean ExecDisable, UIntPtr VirtAddr) : m_Rw(Rw), @@ -46,7 +46,7 @@ bool PTEWrapper::Reclaim() { PTEWrapper PageManager::Request(Boolean Rw, Boolean User, Boolean ExecDisable) { // Store PTE wrapper right after PTE. - VoidPtr ptr = HCore::HAL::hal_alloc_page(Rw, User); + VoidPtr ptr = NewOS::HAL::hal_alloc_page(Rw, User); return PTEWrapper{Rw, User, ExecDisable, (UIntPtr)ptr}; } @@ -73,4 +73,4 @@ bool PTEWrapper::Access() { return m_Accessed; } void PTEWrapper::NoExecute(const bool enable) { this->m_ExecDisable = enable; } const bool &PTEWrapper::NoExecute() { return this->m_ExecDisable; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/PermissionSelector.cxx b/Private/Source/PermissionSelector.cxx index 87680b06..47bd73f4 100644 --- a/Private/Source/PermissionSelector.cxx +++ b/Private/Source/PermissionSelector.cxx @@ -1,7 +1,7 @@ /* * ======================================================== * - * HCore + * NewOS * Copyright Mahrouss Logic, all rights reserved. * * File: PermissionSelector.cpp @@ -15,7 +15,7 @@ /// bugs 0 -namespace HCore { +namespace NewOS { PermissionSelector::PermissionSelector(const Int32 &sel) : fRing((RingKind)sel) { MUST_PASS(sel > 0); @@ -35,4 +35,4 @@ bool PermissionSelector::operator!=(const PermissionSelector &lhs) { } const RingKind &PermissionSelector::Ring() noexcept { return this->fRing; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Pmm.cxx b/Private/Source/Pmm.cxx index 97614cfa..ba5f62e8 100644 --- a/Private/Source/Pmm.cxx +++ b/Private/Source/Pmm.cxx @@ -7,7 +7,7 @@ #include <KernelKit/DebugOutput.hpp> #include <NewKit/Pmm.hpp> -namespace HCore { +namespace NewOS { Pmm::Pmm() : m_PageManager() { kcout << "[PMM] Allocate PageMemoryManager"; } Pmm::~Pmm() = default; @@ -65,4 +65,4 @@ Boolean Pmm::ToggleShare(Ref<PTEWrapper> PageRef, Boolean Enable) { return true; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/ProcessScheduler.cxx b/Private/Source/ProcessScheduler.cxx index 54a4afe8..c29b4c89 100644 --- a/Private/Source/ProcessScheduler.cxx +++ b/Private/Source/ProcessScheduler.cxx @@ -20,7 +20,7 @@ /* This file handles the process scheduling. /***********************************************************************************/ -namespace HCore { +namespace NewOS { /***********************************************************************************/ /// Exit Code stuff /***********************************************************************************/ @@ -306,4 +306,4 @@ bool ProcessHelper::Switch(HAL::StackFrame *the_stack, const PID &new_pid) { return false; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/ProcessTeam.cxx b/Private/Source/ProcessTeam.cxx index 45cfb3bc..dbbcab24 100644 --- a/Private/Source/ProcessTeam.cxx +++ b/Private/Source/ProcessTeam.cxx @@ -11,7 +11,7 @@ #include <KernelKit/ProcessScheduler.hpp> -namespace HCore { +namespace NewOS { /// @brief Process list array getter. /// @return MutableArray<Ref<ProcessHeader>>& ProcessTeam::AsArray() { return mProcessList; } @@ -19,6 +19,6 @@ MutableArray<Ref<ProcessHeader>>& ProcessTeam::AsArray() { return mProcessList; /// @brief Current process getter. /// @return Ref<ProcessHeader>& ProcessTeam::AsRef() { return mCurrentProcess; } -} // namespace HCore +} // namespace NewOS // last rev 05-03-24 diff --git a/Private/Source/Property.cxx b/Private/Source/Property.cxx index 9df9598c..81cf430a 100644 --- a/Private/Source/Property.cxx +++ b/Private/Source/Property.cxx @@ -6,10 +6,10 @@ #include <CFKit/Property.hpp> -namespace HCore { +namespace NewOS { bool Property::StringEquals(StringView& name) { return m_sName && this->m_sName == name; } const PropertyId& Property::GetPropertyById() { return m_Action; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/RuntimeMain.cxx b/Private/Source/RuntimeMain.cxx index ffecaa18..3ae1d428 100644 --- a/Private/Source/RuntimeMain.cxx +++ b/Private/Source/RuntimeMain.cxx @@ -20,10 +20,10 @@ EXTERN_C void RuntimeMain(void) { ///! Mounts a NewFS block. - HCore::NewFilesystemManager* newFS = new HCore::NewFilesystemManager(); - HCore::ke_protect_ke_heap(newFS); + NewOS::NewFilesystemManager* newFS = new NewOS::NewFilesystemManager(); + NewOS::ke_protect_ke_heap(newFS); - HCore::FilesystemManagerInterface::Mount(newFS); + NewOS::FilesystemManagerInterface::Mount(newFS); ///! we're done, unmount. delete newFS; diff --git a/Private/Source/SMPManager.cxx b/Private/Source/SMPManager.cxx index b95eb68d..913bb44d 100644 --- a/Private/Source/SMPManager.cxx +++ b/Private/Source/SMPManager.cxx @@ -10,10 +10,10 @@ ///! BUGS: 0 -///! @brief This file handles multi processing in HCore. +///! @brief This file handles multi processing in NewOS. ///! @brief Multi processing is needed for multi-tasking operations. -namespace HCore { +namespace NewOS { ///! A HardwareThread class takes care of it's owned hardware thread. ///! It has a stack for it's core. @@ -168,4 +168,4 @@ bool SMPManager::operator!() noexcept { return m_ThreadList.Empty(); } /// @brief Returns the amount of core present. /// @return the number of cores. SizeT SMPManager::Count() noexcept { return m_ThreadList.Count(); } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Semaphore.cxx b/Private/Source/Semaphore.cxx index 9767c8bb..df4e77ba 100644 --- a/Private/Source/Semaphore.cxx +++ b/Private/Source/Semaphore.cxx @@ -8,7 +8,7 @@ #include <KernelKit/Semaphore.hpp> #include <KernelKit/Timer.hpp> -namespace HCore { +namespace NewOS { bool Semaphore::Unlock() noexcept { if (fLockingProcess) fLockingProcess = nullptr; @@ -38,4 +38,4 @@ void Semaphore::Sync() noexcept { while (fLockingProcess) { } } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Storage/AHCIDeviceInterface.cxx b/Private/Source/Storage/AHCIDeviceInterface.cxx index 31fbce67..c6a4a4be 100644 --- a/Private/Source/Storage/AHCIDeviceInterface.cxx +++ b/Private/Source/Storage/AHCIDeviceInterface.cxx @@ -6,7 +6,7 @@ #include <StorageKit/AHCI.hpp> -using namespace HCore; +using namespace NewOS; /// @brief Class constructor /// @param Out Disk output diff --git a/Private/Source/Storage/NVMEDeviceInterface.cxx b/Private/Source/Storage/NVMEDeviceInterface.cxx index fc75604d..25f23272 100644 --- a/Private/Source/Storage/NVMEDeviceInterface.cxx +++ b/Private/Source/Storage/NVMEDeviceInterface.cxx @@ -6,6 +6,6 @@ #include <StorageKit/NVME.hpp> -namespace HCore { +namespace NewOS { const char *NVMEDeviceInterface::Name() const { return ("NVMEDeviceInterface"); } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/String.cxx b/Private/Source/String.cxx index a27a3a37..a204777d 100644 --- a/Private/Source/String.cxx +++ b/Private/Source/String.cxx @@ -8,7 +8,7 @@ #include <NewKit/Utils.hpp> #include <KernelKit/DebugOutput.hpp> -namespace HCore { +namespace NewOS { Char *StringView::Data() { return m_Data; } const Char *StringView::CData() { return m_Data; } @@ -188,4 +188,4 @@ StringView &StringView::operator+=(const StringView &rhs) { return *this; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/ThreadLocalStorage.cxx b/Private/Source/ThreadLocalStorage.cxx index c75c1c5a..9ee6a4be 100644 --- a/Private/Source/ThreadLocalStorage.cxx +++ b/Private/Source/ThreadLocalStorage.cxx @@ -1,7 +1,7 @@ /* * ======================================================== * - * HCore + * NewOS * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -17,7 +17,7 @@ /// @brief TLS implementation in kernel. /***********************************************************************************/ -using namespace HCore; +using namespace NewOS; /** * Check for cookie inside TIB. @@ -42,7 +42,7 @@ Boolean tls_check_tib(ThreadInformationBlock* tib) { * @param ptr * @return */ -EXTERN_C Void tls_check_syscall_impl(HCore::HAL::StackFramePtr stackPtr) noexcept { +EXTERN_C Void tls_check_syscall_impl(NewOS::HAL::StackFramePtr stackPtr) noexcept { ThreadInformationBlock* tib = (ThreadInformationBlock*)stackPtr->Gs; if (!tls_check_tib(tib)) { diff --git a/Private/Source/Timer.cxx b/Private/Source/Timer.cxx index af9aea25..a35cc06f 100644 --- a/Private/Source/Timer.cxx +++ b/Private/Source/Timer.cxx @@ -8,7 +8,7 @@ // bugs = 0 -using namespace HCore; +using namespace NewOS; /// @brief Unimplemented as it is an interface. Int32 HardwareTimerInterface::Wait() noexcept { return H_UNIMPLEMENTED; } diff --git a/Private/Source/URL.cxx b/Private/Source/URL.cxx index f4c17e43..004717ae 100644 --- a/Private/Source/URL.cxx +++ b/Private/Source/URL.cxx @@ -10,7 +10,7 @@ /// BUGS: 0 -namespace HCore { +namespace NewOS { Url::Url(StringView &strUrl) : m_urlView(strUrl, false) {} Url::~Url() = default; @@ -79,4 +79,4 @@ Ref<ErrorOr<StringView>> Url::Protocol() noexcept { return Ref<ErrorOr<StringView>>(loc); } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/UserHeap.cxx b/Private/Source/UserHeap.cxx index 4b172d11..dbec5728 100644 --- a/Private/Source/UserHeap.cxx +++ b/Private/Source/UserHeap.cxx @@ -16,7 +16,7 @@ /// KernelHeap.cxx /// BUGS: 0 -namespace HCore { +namespace NewOS { /** * @brief Process Heap Header * @note Allocated per process, it denotes the user's heap. @@ -209,4 +209,4 @@ Int32 rt_free_heap(VoidPtr ptr) { return -1; } -} // namespace HCore +} // namespace NewOS diff --git a/Private/Source/Utils.cxx b/Private/Source/Utils.cxx index d1b146f8..9072ead9 100644 --- a/Private/Source/Utils.cxx +++ b/Private/Source/Utils.cxx @@ -7,7 +7,7 @@ #include <NewKit/Utils.hpp> #include <KernelKit/DebugOutput.hpp> -namespace HCore { +namespace NewOS { Int rt_string_cmp(const Char *src, const Char *cmp, Size size) { Int32 counter = 0; @@ -166,12 +166,12 @@ char *rt_string_from_char(char *str, const char chr) { return str; } -} // namespace HCore +} // namespace NewOS extern "C" void memset(void *dst, char src, size_t len) { - HCore::rt_set_memory(dst, src, len); + NewOS::rt_set_memory(dst, src, len); } extern "C" void memcpy(void *dst, void *src, size_t len) { - HCore::rt_copy_memory(src, dst, len); + NewOS::rt_copy_memory(src, dst, len); } diff --git a/Private/Source/Variant.cxx b/Private/Source/Variant.cxx index 2a9fd5a0..065d562e 100644 --- a/Private/Source/Variant.cxx +++ b/Private/Source/Variant.cxx @@ -6,7 +6,7 @@ #include <NewKit/Variant.hpp> -namespace HCore { +namespace NewOS { const Char* Variant::ToString() { if (m_Ptr == nullptr) { return ("Memory:{Nullptr}"); @@ -22,4 +22,4 @@ const Char* Variant::ToString() { } } -} // namespace HCore +} // namespace NewOS |
