mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Lesson 23, step 4
This commit is contained in:
parent
6f09492f2b
commit
d9ee2545da
@ -43,7 +43,12 @@ and use those data types instead of our own, then delete them on `type.h`
|
||||
-------------------------------
|
||||
|
||||
First, since `kmalloc` uses a size parameter, we'll use the correct data type `size_t` instead
|
||||
of `u32int_t`. `<stddef.h>` is required for `size_t`
|
||||
of `u32int_t`. `size_t` should be used for all parameters which "count" stuff and cannot be
|
||||
negative. Include `<stddef.h>`.
|
||||
|
||||
We will fix our `kmalloc` in the future, making it a proper memory manager and aligning data types.
|
||||
For now, it will always return a new page-aligned memory block.
|
||||
|
||||
|
||||
5. Missing functions
|
||||
--------------------
|
||||
|
Loading…
Reference in New Issue
Block a user