summaryrefslogtreecommitdiff
path: root/mem/framer.c
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-07-26 14:06:40 +0200
committerAlejandro Sior <aho@sior.be>2022-07-26 14:06:40 +0200
commite0fbf5ca9599cb7599731fe48573e97d05fa38da (patch)
tree2c3b3925c49fd2da68086c6cb4b06a891e823bd5 /mem/framer.c
parentc4e9a8ba15391ae5f1c820744ff1b03544d63467 (diff)
mem/vmap: add basic virtual memory management abstraction
Diffstat (limited to 'mem/framer.c')
-rw-r--r--mem/framer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mem/framer.c b/mem/framer.c
index 9a66feb..dbd8c9a 100644
--- a/mem/framer.c
+++ b/mem/framer.c
@@ -23,9 +23,9 @@ MemFramer *mem_framer_install(void *addr, usize end, uint blksz) {
void *mem_framer_alloc(MemAllocator *inner, usize n) {
/* When allocating a frame, we have two paths:
1. The freelist is not empty: give away
- the last freed frame
- 2. The freelist is empty: bump away the next
- frame (pointed at by the next member)
+ the last freed frame
+ 2. The freelist is empty: bump away the next
+ frame (pointed at by the next member)
The alloc must fail the freelist is empty and that
the next is beyond the end of the region */
@@ -53,7 +53,7 @@ void *mem_framer_alloc(MemAllocator *inner, usize n) {
void mem_framer_free(MemAllocator *inner, void *ptr) {
/* NOTE: this implementation does make the assumption
that the given pointer is the base of the allocated
- region without correction */
+ region without correction */
MemFramer *self = (MemFramer*)inner;