mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 19:19:44 +03:00
Kernel/aarch64: Stub more functions to be able to build Scheduler.cpp
With all these functions stubbed, Scheduler.cpp is now buidable!
This commit is contained in:
parent
352f980ca2
commit
1a84cb5457
Notes:
sideshowbarker
2024-07-17 06:40:35 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/1a84cb5457 Pull-request: https://github.com/SerenityOS/serenity/pull/15661 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/gunnarbeutner Reviewed-by: https://github.com/linusg
@ -20,39 +20,6 @@
|
||||
#include <Kernel/Thread.h>
|
||||
#include <Kernel/UserOrKernelBuffer.h>
|
||||
|
||||
// Scheduler
|
||||
namespace Kernel {
|
||||
|
||||
void Scheduler::timer_tick(RegisterState const&) {
|
||||
// NOTE: This function currently will be called by the TimeManagement code,
|
||||
// so there is no TODO_AARCH64. Instead there will be a linker error when
|
||||
// the Scheduler code is compiled for aarch64.
|
||||
};
|
||||
|
||||
READONLY_AFTER_INIT Thread* g_finalizer;
|
||||
RecursiveSpinlock g_scheduler_lock { LockRank::None };
|
||||
|
||||
void Scheduler::yield()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
void Scheduler::notify_finalizer()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
void Scheduler::add_time_scheduled(u64, bool)
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
void Scheduler::enqueue_runnable_thread(Kernel::Thread&)
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
}
|
||||
|
||||
// Random
|
||||
namespace Kernel {
|
||||
|
||||
@ -86,6 +53,11 @@ LockRefPtr<Process> Process::from_pid(Kernel::ProcessID)
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
LockRefPtr<Thread> Process::create_kernel_thread(void (*)(void*), void*, u32, NonnullOwnPtr<KString>, u32, bool)
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Thread
|
||||
@ -161,6 +133,57 @@ Thread::~Thread()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
void Thread::update_time_scheduled(u64, bool, bool)
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
void Thread::set_state(State, u8)
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
DispatchSignalResult Thread::dispatch_one_pending_signal()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
bool Thread::tick()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
RegisterState& Thread::get_register_dump_from_stack()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
StringView Thread::state_string() const
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
ErrorOr<NonnullOwnPtr<KString>> Thread::backtrace()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ErrorOr<void> AK::Formatter<Kernel::Thread>::format(FormatBuilder&, Kernel::Thread const&)
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
// WaitQueue
|
||||
namespace Kernel {
|
||||
|
||||
u32 WaitQueue::wake_all()
|
||||
{
|
||||
TODO_AARCH64();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// PerformanceEventBuffer
|
||||
|
@ -504,6 +504,7 @@ else()
|
||||
KString.cpp
|
||||
KSyms.cpp
|
||||
MiniStdLib.cpp
|
||||
Scheduler.cpp
|
||||
StdLib.cpp
|
||||
Time/TimeManagement.cpp
|
||||
TimerQueue.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user