diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-25 18:42:30 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-25 18:42:30 -0400 |
commit | 2cf6fe3f4d0811f1d62ed3ba73d15c8a187f600f (patch) | |
tree | 0c7a049c8f6293b27231a409600bc757e928925f /kernel/memory/physalloc.c | |
parent | add comment (diff) | |
download | comus-2cf6fe3f4d0811f1d62ed3ba73d15c8a187f600f.tar.gz comus-2cf6fe3f4d0811f1d62ed3ba73d15c8a187f600f.tar.bz2 comus-2cf6fe3f4d0811f1d62ed3ba73d15c8a187f600f.zip |
mem_get_phys fn
Diffstat (limited to '')
-rw-r--r-- | kernel/memory/physalloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/memory/physalloc.c b/kernel/memory/physalloc.c index 01464ee..48d2e3f 100644 --- a/kernel/memory/physalloc.c +++ b/kernel/memory/physalloc.c @@ -88,7 +88,8 @@ void *alloc_phys_pages_exact(size_t pages) if (bitmap == NULL || page_start == NULL) { // temporary bump allocator void *addr = (void *)memory_start; - assert(pages == 1, "caller expects more pages, but is only getting one"); + assert(pages == 1, + "caller expects more pages, but is only getting one"); memory_start += PAGE_SIZE; return addr; } |