-
Notifications
You must be signed in to change notification settings - Fork 3
set up multiboot information structure #23
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
Conversation
d17091e to
de30786
Compare
Codecov Report
@@ Coverage Diff @@
## master #23 +/- ##
==========================================
- Coverage 73.78% 71.01% -2.78%
==========================================
Files 4 4
Lines 618 790 +172
==========================================
+ Hits 456 561 +105
- Misses 162 229 +67
Continue to review full report at Codecov.
|
b2451ba to
2104248
Compare
loader.c
Outdated
| goto error; | ||
| } | ||
|
|
||
| if (multiboot_info_set_cmdline(&mb->info, loader_args.cmdline)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should really only be called if loader_args.cmdline is set, otherwise we segfault here, as it is initialized to NULL.
20d1f82 to
93e27b0
Compare
info should be the multiboot info structure, rename this to avoid a later name collision.
instead, use the one from the struct multiboot context variable.
6199e2c to
f4384ac
Compare
Memory information is given in kiB in the multiboot information structure, but multiboot_info_set_mmap used these values as bytes.
024f886 to
83eed4e
Compare
also fix an off-by-one error caught by this test
6a2a1c0 to
aa7b4eb
Compare
Fixes #4