1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

Kernel: Reintroduce the msyscall syscall as the annotate_mapping syscall

This syscall will be used later on to ensure we can declare virtual
memory mappings as immutable (which means that the underlying Region is
basically immutable for both future annotations or changing the
protection bits of it).
This commit is contained in:
Liav A 2022-12-15 20:38:19 +02:00 committed by Andrew Kaster
parent 1b5a565e55
commit 6c0486277e
8 changed files with 36 additions and 11 deletions

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/EnumBits.h>
#include <AK/Types.h>
namespace Kernel {
enum class VirtualMemoryRangeFlags : u32 {
None = 0,
SyscallCode = 1 << 0,
};
AK_ENUM_BITWISE_OPERATORS(VirtualMemoryRangeFlags);
}