kern: fix handling of is_aligned parameter in DevicePageTable

This commit is contained in:
Michael Scire committed 2021-07-04 10:45:14 -07:00
1 parent 846cde52e0
commit 2088c5a34a
3 files changed
+4 -4

No files matched your search

@@ -86,7 +86,7 @@ namespace ams::kern {
auto mapped_size_guard = SCOPE_GUARD { *out_mapped_size = 0; };
/* Perform the mapping. */
R_TRY(m_table.Map(out_mapped_size, page_table, process_address, size, device_address, device_perm, refresh_mappings));
R_TRY(m_table.Map(out_mapped_size, page_table, process_address, size, device_address, device_perm, is_aligned, refresh_mappings));
/* Ensure that we unmap the pages if we fail to update the protections. */
/* NOTE: Nintendo does not check the result of this unmap call. */