mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
This commit is contained in:
parent
6f71b0e5a2
commit
48e277c8c0
1 changed files with 2 additions and 2 deletions
4
third_party/host_memory/host_memory.cpp
vendored
4
third_party/host_memory/host_memory.cpp
vendored
|
@ -460,7 +460,7 @@ namespace Common {
|
|||
throw std::bad_alloc{};
|
||||
}
|
||||
#endif
|
||||
backing_base = static_cast<u8*>(mmap(nullptr, backing_size, PROT_READ | PROT_WRITE, MAYBE_ANONYMOUS(MAP_SHARED), fd, 0));
|
||||
backing_base = static_cast<u8*>(mmap(nullptr, backing_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0));
|
||||
|
||||
if (backing_base == MAP_FAILED) {
|
||||
Helpers::warn("mmap failed: {}", strerror(errno));
|
||||
|
@ -504,7 +504,7 @@ namespace Common {
|
|||
}
|
||||
#endif
|
||||
|
||||
void* ret = mmap(virtual_base + virtual_offset, length, flags, MAYBE_ANONYMOUS(MAP_SHARED | MAP_FIXED), fd, host_offset);
|
||||
void* ret = mmap(virtual_base + virtual_offset, length, flags, MAP_SHARED | MAP_FIXED, fd, host_offset);
|
||||
ASSERT_MSG(ret != MAP_FAILED, "mmap failed: {}", strerror(errno));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue