From 945d1c9eb7a6520429ebf2f988ac6cc1d12ec75d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 23 Nov 2019 01:02:19 +0100 Subject: Fixed almost every vesa memory bug --- src/kernel/lib/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/lib') diff --git a/src/kernel/lib/memory.c b/src/kernel/lib/memory.c index 0659406..a80309e 100644 --- a/src/kernel/lib/memory.c +++ b/src/kernel/lib/memory.c @@ -53,7 +53,7 @@ void memory_init() { } uint32_t memory_get_free() { - return (total_memory) - paging_get_used_pages() * 4; + return total_memory - paging_get_used_pages() * 4; } uint32_t memory_get_all() { return total_memory; } \ No newline at end of file -- cgit v1.2.3