fixed dirbase ordering in templated rpm/wpm

merge-requests/1/merge
_xeroxz 4 years ago
parent 34cacd54a9
commit 39f2409b91

@ -145,7 +145,7 @@ namespace voyager
template <class T> template <class T>
auto wpm(guest_phys_t dirbase, guest_virt_t virt_addr, const T& data) -> void auto wpm(guest_phys_t dirbase, guest_virt_t virt_addr, const T& data) -> void
{ {
copy_virt(dirbase, (guest_virt_t)&data, copy_virt(current_dirbase(), (guest_virt_t)&data,
dirbase, virt_addr, sizeof T); dirbase, virt_addr, sizeof T);
} }
} }

@ -145,7 +145,7 @@ namespace voyager
template <class T> template <class T>
auto wpm(guest_phys_t dirbase, guest_virt_t virt_addr, const T& data) -> void auto wpm(guest_phys_t dirbase, guest_virt_t virt_addr, const T& data) -> void
{ {
copy_virt(dirbase, (guest_virt_t)&data, copy_virt(current_dirbase(), (guest_virt_t)&data,
dirbase, virt_addr, sizeof T); dirbase, virt_addr, sizeof T);
} }
} }
Loading…
Cancel
Save