1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

Kernel: Move spinlock into Arch

Spinlocks are tied to the platform they are built for, this is why they
have been moved into the Arch folder. They are still available via
"Locking/Spinlock.h"

An Aarch64 stub has been created
This commit is contained in:
James Mintram 2021-10-14 20:18:56 +01:00 committed by Linus Groh
parent dfe4810c3a
commit e8f09279d3
4 changed files with 229 additions and 118 deletions

17
Kernel/Arch/Spinlock.h Normal file
View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2020, 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/Spinlock.h>
#elif ARCH(AARCH64)
# include <Kernel/Arch/aarch64/Spinlock.h>
#else
# error "Unknown architecture"
#endif