blob: d3c7a24d55496b9e3eb0b4f1f1f9e15c3d19417c [file] [log] [blame]
// Copyright 2024 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/zx/vmar.h>
#include "module.h"
namespace dl {
ModuleHandle::~ModuleHandle() {
if (vaddr_size() > 0) {
zx::vmar::root_self()->unmap(abi_module_.vaddr_start, vaddr_size());
}
}
} // namespace dl