/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #ifdef KERNEL # include #else # include #endif namespace Kernel { inline bool time_page_supports(clockid_t clock_id) { return clock_id == CLOCK_REALTIME; } struct TimePage { volatile u32 update1; struct timespec clocks[CLOCK_ID_COUNT]; volatile u32 update2; }; }