mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +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
Notes:
sideshowbarker
2024-07-18 02:20:05 +09:00
Author: https://github.com/jamesmintram
Commit: f4fb637914
Pull-request: https://github.com/SerenityOS/serenity/pull/10475
Reviewed-by: https://github.com/linusg ✅
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