tool: improve emulation of kernel boot #276
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of the things the tool has to do is emulate the kernel boot process, this involves getting a layout of all memory and putting into two categories, 'device' memory and 'normal' memory as defined by the kernel.
The way we do this currently is by looking at certain symbols in the kernel ELF that encode this information. This doesn't work well when the compiler decides to optimise that symbol out and instead embed the information directly into where it's being used in the kernel code.
So, instead we use the
platform_gen.jsonfile that gets generated by the kernel build system to get the same information.There should be no difference at all in terms of what the tool actually spits out at the end, it just means that the process of doing this emulation is less fragile.
Closes #35.
Depends on seL4/seL4#1390 first.