Implement buddy system (still in draft)#420
Draft
YinhuaChen-vivo wants to merge 4 commits into
Draft
Conversation
58dd98f to
a4eb456
Compare
runnable, with many logs, tests not checked yet runnable platform: 1.qemu_virt64_aarch64 --- fix bugs: 1.multiple DRAM_BASE : kernel/src/boards/qemu_virt64_aarch64/mod.rs 2.multiple instances of BUDDY_ALLOC : kernel/src/allocator/mod.rs 3.use PHYS_DRAM_SIZE when link.x links all symbols with linearmap offset 4.buddy init code ignore kernel image part in memory layout 5.metadata_end's calculation should sub linearmap_offset first 6.buddy init code set zero [mem_start, page_array_size] directly, ignore kernel image part --- modified: kernel/src/allocator/Kconfig kernel/src/allocator/buddy/heap.rs kernel/src/allocator/buddy/mod.rs kernel/src/allocator/buddy/page.rs kernel/src/allocator/buddy/tests.rs kernel/src/allocator/mod.rs kernel/src/boards/qemu_virt64_aarch64/config.rs : define DRAM_SIZE kernel/src/boards/qemu_virt64_aarch64/link.x : LENGTH = 125.5M, increase linearmap region size from 32M to 125.5M kernel/src/boards/qemu_virt64_aarch64/mod.rs : pub use DRAM_SIZE
a4eb456 to
4cce88a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implement buddy system (still in draft)