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

set up multiboot information structure #23

Merged
merged 23 commits into from
Mar 6, 2018

Conversation

fabianfreyer
Copy link
Contributor

Fixes #4

@fabianfreyer fabianfreyer added help wanted Extra attention is needed spec labels Feb 20, 2018
@fabianfreyer fabianfreyer added this to the v0.1 milestone Feb 20, 2018
@fabianfreyer fabianfreyer self-assigned this Feb 20, 2018
@codecov
Copy link

codecov bot commented Feb 20, 2018

Codecov Report

Merging #23 into master will decrease coverage by 2.77%.
The diff coverage is 66.82%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
loader.c 0% <0%> (ø) ⬆️
multiboot.c 76.17% <82.45%> (+1.37%) ⬆️
tests/mock/bhyveload.c 81.89% <0%> (+0.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfe0528...e898a6f. Read the comment docs.

@fabianfreyer fabianfreyer force-pushed the multiboot/info branch 3 times, most recently from b2451ba to 2104248 Compare February 20, 2018 19:28
loader.c Outdated
@@ -122,6 +127,11 @@ loader_main(struct loader_callbacks *cb, void *arg, int version, int ndisks)
if (multiboot_load(kernel, kernsz, mb)) {
goto error;
}

if (multiboot_info_set_cmdline(&mb->info, loader_args.cmdline)) {
Copy link
Contributor Author

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.

Memory information is given in kiB in the multiboot information
structure, but multiboot_info_set_mmap used these values as bytes.
@fabianfreyer fabianfreyer merged commit e898a6f into fubarnetes:master Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed spec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant