mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:07:45 +00:00
Kernel: Split ScopedCritical so header is platform independent
A new header file has been created in the Arch/ folder while the implementation has been moved into a CPP living in the X86 folder.
This commit is contained in:
parent
8b57e56d66
commit
f4fb637914
10 changed files with 129 additions and 66 deletions
34
Kernel/Arch/aarch64/ScopedCritical.cpp
Normal file
34
Kernel/Arch/aarch64/ScopedCritical.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Arch/ScopedCritical.h>
|
||||
|
||||
#include <Kernel/Arch/Processor.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
ScopedCritical::ScopedCritical()
|
||||
{
|
||||
}
|
||||
|
||||
ScopedCritical::~ScopedCritical()
|
||||
{
|
||||
}
|
||||
|
||||
ScopedCritical::ScopedCritical(ScopedCritical&& /*from*/)
|
||||
{
|
||||
}
|
||||
|
||||
ScopedCritical& ScopedCritical::operator=(ScopedCritical&& /*from*/)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
void ScopedCritical::leave() { }
|
||||
|
||||
void ScopedCritical::enter() { }
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue