diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-27 10:26:31 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-27 10:26:31 +0100 |
| commit | 70e95128b11dbb535e4679cbacb1cbeaa414c822 (patch) | |
| tree | 42fd94536a54058a39f0c85be99431c6ad1a0cf8 /Private/Source | |
| parent | 44a081a4442181b208c09c6f748124c9d23b61fd (diff) | |
Kernel: Improving AMD64 HAL, Add TIBInstall.asm, currently Working on
SMPManager and Bootloader.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/IndexableProperty.cxx (renamed from Private/Source/FilesystemIndexer.cxx) | 0 | ||||
| -rw-r--r-- | Private/Source/Network/IP.cpp | 11 | ||||
| -rw-r--r-- | Private/Source/NewFS-Journal.cxx | 1 | ||||
| -rw-r--r-- | Private/Source/ThreadLocalStorage.cxx | 6 |
4 files changed, 11 insertions, 7 deletions
diff --git a/Private/Source/FilesystemIndexer.cxx b/Private/Source/IndexableProperty.cxx index bb1393b5..bb1393b5 100644 --- a/Private/Source/FilesystemIndexer.cxx +++ b/Private/Source/IndexableProperty.cxx diff --git a/Private/Source/Network/IP.cpp b/Private/Source/Network/IP.cpp index 4a0b3011..ba6fd71f 100644 --- a/Private/Source/Network/IP.cpp +++ b/Private/Source/Network/IP.cpp @@ -12,6 +12,11 @@ namespace hCore { + char* RawIPAddress::Address() + { + return m_Addr; + } + RawIPAddress::RawIPAddress(char bytes[4]) { rt_copy_memory(bytes, m_Addr, 4); @@ -86,19 +91,19 @@ namespace hCore return true; } - ErrorOr<StringView> IPHelper::ToStringView(Ref<RawIPAddress6> ipv6) + ErrorOr<StringView> IPFactory::ToStringView(Ref<RawIPAddress6> ipv6) { auto str = StringBuilder::Construct(ipv6.Leak().Address()); return str; } - ErrorOr<StringView> IPHelper::ToStringView(Ref<RawIPAddress> ipv4) + ErrorOr<StringView> IPFactory::ToStringView(Ref<RawIPAddress> ipv4) { auto str = StringBuilder::Construct(ipv4.Leak().Address()); return str; } - bool IPHelper::IpCheckV4(const char *ip) + bool IPFactory::IpCheckVersion4(const char *ip) { int cnter = 0; diff --git a/Private/Source/NewFS-Journal.cxx b/Private/Source/NewFS-Journal.cxx index bc3a4345..9c96928d 100644 --- a/Private/Source/NewFS-Journal.cxx +++ b/Private/Source/NewFS-Journal.cxx @@ -7,7 +7,6 @@ * ======================================================== */ - #include <FSKit/NewFS.hxx> #include <KernelKit/DebugOutput.hpp> diff --git a/Private/Source/ThreadLocalStorage.cxx b/Private/Source/ThreadLocalStorage.cxx index 5cde1e77..5d231f61 100644 --- a/Private/Source/ThreadLocalStorage.cxx +++ b/Private/Source/ThreadLocalStorage.cxx @@ -21,11 +21,11 @@ Boolean hcore_tls_check(VoidPtr ptr) return _ptr[0] == kRTLMag0 && _ptr[1] == kRTLMag1 && _ptr[2] == kRTLMag2; } -Void hcore_tls_check_syscall_impl(VoidPtr ptr) noexcept +Void hcore_tls_check_syscall_impl(ThreadInformationBlock ptr) noexcept { - if (!hcore_tls_check(ptr)) + if (!hcore_tls_check(ptr.Cookie)) { - kcout << "TLS: TLS check failure, crashing...\n"; + kcout << "TLS: Verification failure, crashing...\n"; ProcessManager::Shared().Leak().GetCurrent().Leak().Crash(); } } |
