Commit 39f2409b authored by _xeroxz's avatar _xeroxz
Browse files

fixed dirbase ordering in templated rpm/wpm

parent 34cacd54
......@@ -145,7 +145,7 @@ namespace voyager
template <class T>
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);
}
}
\ No newline at end of file
......@@ -145,7 +145,7 @@ namespace voyager
template <class T>
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);
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment