diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-12-12 10:08:46 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-12-12 14:03:50 -0500 |
| commit | 366985ca925c28867b4cdf847db978acd6c2db1e (patch) | |
| tree | 4a14e65865cc55c35e451ae5947e644741b9cd31 /src/core/hle/kernel/process.cpp | |
| parent | 3b1043c58a743fa5efbd2d33f0080691114de964 (diff) | |
vm_manager: Amend MemoryState enum members
Amends the MemoryState enum to use the same values like the actual
kernel does. Also provides the necessary operators to operate on them.
This will be necessary in the future for implementing
svcSetMemoryAttribute, as memory block state is checked before applying
the attribute.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index c817fb449..5356a4a3f 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -150,7 +150,7 @@ void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { vm_manager .MapMemoryBlock(vm_manager.GetTLSIORegionEndAddress() - stack_size, std::make_shared<std::vector<u8>>(stack_size, 0), 0, stack_size, - MemoryState::Mapped) + MemoryState::Stack) .Unwrap(); vm_manager.LogLayout(); |
