[Mammoth] Move most classes to the mmth namespace.

This commit is contained in:
Drew Galbraith 2023-11-22 14:59:41 -08:00
parent 5f8d577948
commit 8d730c67c1
42 changed files with 130 additions and 60 deletions

View file

@ -5,6 +5,8 @@
#include "util/debug.h"
#include "util/init.h"
namespace mmth {
OwnedMemoryRegion::OwnedMemoryRegion(OwnedMemoryRegion&& other)
: OwnedMemoryRegion(other.vmmo_cap_, other.vaddr_, other.size_) {
other.vmmo_cap_ = 0;
@ -68,3 +70,5 @@ z_cap_t OwnedMemoryRegion::DuplicateCap() {
check(ZCapDuplicate(vmmo_cap_, kZionPerm_All, &cap));
return cap;
}
} // namespace mmth