mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
This makes the code architecture independent, and thus makes it work for aarch64.
26 lines
513 B
C++
26 lines
513 B
C++
/*
|
|
* Copyright (c) 2020-2021, Andreas Kling <[email protected]>
|
|
* Copyright (c) 2023, Timon Kruiper <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/Arch/PageDirectory.h>
|
|
#include <Kernel/Forward.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class ScopedAddressSpaceSwitcher {
|
|
public:
|
|
explicit ScopedAddressSpaceSwitcher(Process&);
|
|
~ScopedAddressSpaceSwitcher();
|
|
|
|
private:
|
|
LockRefPtr<Memory::PageDirectory> m_previous_page_directory;
|
|
};
|
|
|
|
}
|