mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-10 10:08:42 +00:00
kern: implement KCodeMemory (and SVCs)
This commit is contained in:
parent
3fb3beeaff
commit
39b22cee8c
6 changed files with 152 additions and 10 deletions
|
@ -1981,7 +1981,7 @@ namespace ams::kern {
|
|||
KMemoryAttribute_AnyLocked | KMemoryAttribute_Locked, std::addressof(pg));
|
||||
}
|
||||
|
||||
Result KPageTableBase::LockForCodeMemory(KPageGroup *out, KProcessAddress address, size_t size, KMemoryPermission perm) {
|
||||
Result KPageTableBase::LockForCodeMemory(KPageGroup *out, KProcessAddress address, size_t size) {
|
||||
return this->LockMemoryAndOpen(out, nullptr, address, size,
|
||||
KMemoryState_FlagCanCodeMemory, KMemoryState_FlagCanCodeMemory,
|
||||
KMemoryPermission_All, KMemoryPermission_UserReadWrite,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue