kmalloc() reserves a minimum of 4096 bytes. this is done for two reasons: 1) the linked list has enough items for "avaialable memory / 4096". Thus, to make sure we don't run out of items, don't allow for smaller than 4kb chunks of memory 2) paging makes use of 4kb pages later on. Well, it might, I don't know much about paging yet.
kmalloc() reserves a minimum of 4096 bytes. this is done for two reasons:
1) the linked list has enough items for "avaialable memory / 4096". Thus, to make sure we don't run out of items, don't allow for smaller than 4kb chunks of memory
2) paging makes use of 4kb pages later on. Well, it might, I don't know much about paging yet.

krealloc should now be able to increase memory reserved. This is done by copying the whole memory to a bigger location. The function has not been tested out that well. Nothing in mm.c has been, there be dragons.

jaacoppi/LetkuOS,jaacoppi/LetkuOS,jaacoppi/LetkuOS,jaacoppi/LetkuOS