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:
parent
dfe4810c3a
commit
e8f09279d3
4 changed files with 229 additions and 118 deletions
17
Kernel/Arch/Spinlock.h
Normal file
17
Kernel/Arch/Spinlock.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue