diff options
author | James Mintram <me@jamesrm.com> | 2021-11-20 22:54:18 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-21 09:12:16 +0100 |
commit | bcd518a228497c8cd943fc0cc34326a06ce4bead (patch) | |
tree | a519a325f1395b6afcf270fe83e0196f8118abaa /AK/Format.cpp | |
parent | f538df75729f0fee932c5c2791e48efc5fcaa801 (diff) | |
download | serenity-bcd518a228497c8cd943fc0cc34326a06ce4bead.zip |
Kernel: Wrap format timespec assignment in a check for !AARCH64
Currently TimeManagement wont compile on AARCH64, so it is not included.
This creates a link error since format.cpp now relies on functionality
in TimeManagement.cpp to add timestamps to log lines.
This PR disables that functionality for AARCH64 builds until
TimeManagement will compile.
Diffstat (limited to 'AK/Format.cpp')
-rw-r--r-- | AK/Format.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/Format.cpp b/AK/Format.cpp index f0aa893a64..635f0218db 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -873,8 +873,11 @@ void vdmesgln(StringView fmtstr, TypeErasedFormatParams& params) # ifdef __serenity__ struct timespec ts = {}; + +# if !ARCH(AARCH64) if (TimeManagement::is_initialized()) ts = TimeManagement::the().monotonic_time(TimePrecision::Coarse).to_timespec(); +# endif if (Kernel::Processor::is_initialized() && Kernel::Thread::current()) { auto& thread = *Kernel::Thread::current(); |