[Zion] Actually free memory pages when a MemoryObject goes out of scope
This commit is contained in:
parent
344e84c313
commit
4d1846a7d5
8 changed files with 63 additions and 21 deletions
|
|
@ -130,8 +130,8 @@ void WriteInitProgram(glcr::RefPtr<Port> port, glcr::String name, uint64_t id) {
|
|||
|
||||
glcr::ErrorCode WritePciVmmo(glcr::RefPtr<Port> port, uint64_t id) {
|
||||
ASSIGN_OR_RETURN(PcieConfiguration config, GetPciExtendedConfiguration());
|
||||
auto vmmo =
|
||||
glcr::MakeRefCounted<FixedMemoryObject>(config.base, config.offset);
|
||||
auto vmmo = glcr::MakeRefCounted<FixedMemoryObject>(config.base,
|
||||
config.offset, false);
|
||||
|
||||
port->WriteKernel(id, MakeRefCounted<Capability>(vmmo));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue