diff options
Diffstat (limited to 'Private/ArchKit')
| -rw-r--r-- | Private/ArchKit/ArchKit.hpp | 50 | ||||
| -rw-r--r-- | Private/ArchKit/compile_flags.txt | 7 |
2 files changed, 0 insertions, 57 deletions
diff --git a/Private/ArchKit/ArchKit.hpp b/Private/ArchKit/ArchKit.hpp deleted file mode 100644 index be155385..00000000 --- a/Private/ArchKit/ArchKit.hpp +++ /dev/null @@ -1,50 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -#include <NewKit/Array.hpp> -#include <NewKit/Defines.hpp> -#include <NewKit/Function.hpp> - -#ifdef __NEWOS_AMD64__ -#include <HALKit/AMD64/HalPageAlloc.hpp> -#include <HALKit/AMD64/Hypervisor.hpp> -#include <HALKit/AMD64/Processor.hpp> -#elif defined(__NEWOS_PPC__) -#include <HALKit/POWER/Processor.hpp> -#else -#error Unknown architecture -#endif - -namespace NewOS -{ - constexpr static inline SSizeT rt_hash_seed(const char* seed, int mul) - { - SSizeT hash = 0; - - for (SSizeT idx = 0; seed[idx] != 0; ++idx) - { - hash += seed[idx]; - hash ^= mul; - } - - return hash; - } -} // namespace NewOS - -#define kKernelMaxSystemCalls (256) - -typedef NewOS::Void (*rt_syscall_proc)(NewOS::HAL::StackFramePtr); - -extern NewOS::Array<rt_syscall_proc, - kKernelMaxSystemCalls> - kSyscalls; - -EXTERN_C NewOS::HAL::StackFramePtr rt_get_current_context(); -EXTERN_C NewOS::Void rt_do_context_switch(NewOS::HAL::StackFramePtr stackFrame); - -#include <FirmwareKit/Handover.hxx> diff --git a/Private/ArchKit/compile_flags.txt b/Private/ArchKit/compile_flags.txt deleted file mode 100644 index a3cab89d..00000000 --- a/Private/ArchKit/compile_flags.txt +++ /dev/null @@ -1,7 +0,0 @@ --nostdlib --ffreestanding --std=c++20 --I./ --I../ --I$(HOME)/ --D__NEWOS_AMD64__ |
