mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
Kernel: Rename ProcessPagingScope => ScopedAddressSpaceSwitcher
This commit is contained in:
parent
cd8d52e6ae
commit
f16b9a691f
8 changed files with 24 additions and 24 deletions
23
Kernel/Memory/ScopedAddressSpaceSwitcher.h
Normal file
23
Kernel/Memory/ScopedAddressSpaceSwitcher.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Forward.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class ScopedAddressSpaceSwitcher {
|
||||
public:
|
||||
explicit ScopedAddressSpaceSwitcher(Process&);
|
||||
~ScopedAddressSpaceSwitcher();
|
||||
|
||||
private:
|
||||
u32 m_previous_cr3 { 0 };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue