mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
Kernel: Abstract platform-specific current time methods from Scheduler
This change ensures that the scheduler doesn't depend on a platform specific or arch-specific code when it initializes itself, but rather we ensure that in compile-time we will generate the appropriate code to find the correct arch-specific current time methods.
This commit is contained in:
parent
c439a34ff7
commit
3651d9701e
Notes:
sideshowbarker
2024-07-17 10:10:18 +09:00
Author: https://github.com/supercomputer7
Commit: 3651d9701e
Pull-request: https://github.com/SerenityOS/serenity/pull/15508
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
5 changed files with 71 additions and 11 deletions
17
Kernel/Arch/CurrentTime.h
Normal file
17
Kernel/Arch/CurrentTime.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
typedef u64 (*fptr)();
|
||||
|
||||
fptr optional_current_time();
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue