diff options
author | Marvin Borner | 2019-11-23 01:02:19 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-23 01:02:19 +0100 |
commit | 945d1c9eb7a6520429ebf2f988ac6cc1d12ec75d (patch) | |
tree | 04907ea20b6965b610fa7d01b5f63787a7b37221 /src/kernel/lib/memory.c | |
parent | 45d9495e77dba212551ae9bc8e09b51e9ed6d324 (diff) |
Fixed almost every vesa memory bug
Diffstat (limited to 'src/kernel/lib/memory.c')
-rw-r--r-- | src/kernel/lib/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |