Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About init_heap #612

Open
PinoTsao opened this issue Aug 20, 2018 · 0 comments
Open

About init_heap #612

PinoTsao opened this issue Aug 20, 2018 · 0 comments

Comments

@PinoTsao
Copy link
Contributor

PinoTsao commented Aug 20, 2018

In chapter "First steps in the kernel setup", section "Heap initialization" :

Then there is the heap_end calculation:

heap_end = (char *)((size_t)boot_params.hdr.heap_end_ptr + 0x200);

which means heap_end_ptr or _end + 512 (0x200h)

which is a little bit obscure, How about:

The definition of heap_end_ptr would minus 0x200, so make it up.

Check heap_end_ptr in Documentation/x86/boot.txt. Although I don't understand the "minus 0x200" in the definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants