1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

Kernel: Add PAGE_MASK to an aarch64 CPU header

This commit is contained in:
James Mintram 2022-04-02 23:45:04 +01:00 committed by Brian Gianforcaro
parent 83e8dfae38
commit 026efae8a8
2 changed files with 33 additions and 0 deletions

24
Kernel/Arch/CPU.h Normal file
View file

@ -0,0 +1,24 @@
/*
* Copyright (c) 2018-2022, James Mintram <me@jamesrm.com>
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Platform.h>
#if ARCH(X86_64) || ARCH(I386)
# include <Kernel/Arch/x86/CPU.h>
#elif ARCH(AARCH64)
# include <Kernel/Arch/aarch64/CPU.h>
#else
# error "Unknown architecture"
#endif
namespace Kernel {
struct RegisterState;
}

View file

@ -0,0 +1,9 @@
/*
* Copyright (c) 2018-2022, James Mintram <me@jamesrm.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#define PAGE_MASK (~(FlatPtr)0xfffu)