projects
/
voyage-au-centre-des-fichiers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13fbf43
)
Changed a return statement so that the count returned by the allocator is always...
author
Amelia Coutard
<eliottulio.coutard@gmail.com>
Thu, 26 May 2022 17:48:56 +0000
(19:48 +0200)
committer
Amelia Coutard
<eliottulio.coutard@gmail.com>
Thu, 26 May 2022 17:48:56 +0000
(19:48 +0200)
src/paging.cpp
patch
|
blob
|
history
diff --git
a/src/paging.cpp
b/src/paging.cpp
index 530436c983e8c36df8172daaf67f1e9522b69680..7b96ef4d3a802a0ee9f794835f18a5968bbf669d 100644
(file)
--- a/
src/paging.cpp
+++ b/
src/paging.cpp
@@
-33,7
+33,7
@@
os::paging::page_allocator::block os::paging::page_allocator::allocate(std::uint
};
}
}
- return { .ptr = nullptr, .size =
0
};
+ return { .ptr = nullptr, .size =
count
};
}
void os::paging::page_allocator::deallocate(block b) {
if (b.size == 0) { return; }