diff options
author | James Mintram <me@jamesrm.com> | 2022-04-02 23:45:04 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-02 19:34:20 -0700 |
commit | 026efae8a81bb67f9c35c02b7d1d811bb00bcb8d (patch) | |
tree | 68effc550874c742688f6d369b1ab5007b2b336a /Kernel/Arch | |
parent | 83e8dfae380c407401978a5430694045aba2f5f9 (diff) | |
download | serenity-026efae8a81bb67f9c35c02b7d1d811bb00bcb8d.zip |
Kernel: Add PAGE_MASK to an aarch64 CPU header
Diffstat (limited to 'Kernel/Arch')
-rw-r--r-- | Kernel/Arch/CPU.h | 24 | ||||
-rw-r--r-- | Kernel/Arch/aarch64/CPU.h | 9 |
2 files changed, 33 insertions, 0 deletions
diff --git a/Kernel/Arch/CPU.h b/Kernel/Arch/CPU.h new file mode 100644 index 0000000000..43ba63583d --- /dev/null +++ b/Kernel/Arch/CPU.h @@ -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; + +} diff --git a/Kernel/Arch/aarch64/CPU.h b/Kernel/Arch/aarch64/CPU.h new file mode 100644 index 0000000000..7a59983909 --- /dev/null +++ b/Kernel/Arch/aarch64/CPU.h @@ -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) |