diff options
author | Marvin Borner | 2021-06-02 22:27:59 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-02 22:27:59 +0200 |
commit | 98e15f73f090c32b5197ecec0845c408d4a54608 (patch) | |
tree | 31490731c74b45e2450de56c0c4ea4abd3f3b54d /libs/libc/alloc.c | |
parent | 91ba8d02037cc27c7b44f1bfd492c42ccd0af042 (diff) |
Huge scheduler rewrite and other things
Diffstat (limited to 'libs/libc/alloc.c')
-rw-r--r-- | libs/libc/alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libc/alloc.c b/libs/libc/alloc.c index 6663a0e..f02b015 100644 --- a/libs/libc/alloc.c +++ b/libs/libc/alloc.c @@ -91,9 +91,9 @@ static struct liballoc_major *allocate_new_page(u32 size) u32 st = size + MAJOR_SIZE + MINOR_SIZE; if ((st % l_page_size) == 0) - st = st / (l_page_size); + st = st / l_page_size; else - st = st / (l_page_size) + 1; + st = st / l_page_size + 1; st = MAX(st, l_page_count); |