From be59a42e94e3c3aa77f2c26952a9faa7b92c5bf0 Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Sun, 20 Sep 2015 15:31:23 -0400 Subject: [PATCH] Fix get_heap arguments meaning `n` is not the number of bytes but the number of items which are each of the given size. --- Booting/linux-bootstrap-3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Booting/linux-bootstrap-3.md b/Booting/linux-bootstrap-3.md index e3c7503..06497c5 100644 --- a/Booting/linux-bootstrap-3.md +++ b/Booting/linux-bootstrap-3.md @@ -83,7 +83,7 @@ for heap allocation. It calls the internal function `__get_heap` with 3 paramete * size of a type in bytes, which need be allocated * `__alignof__(type)` shows how variables of this type are aligned -* `n` tells how many bytes to allocate +* `n` tells how many items to allocate Implementation of `__get_heap` is: