Skip to content

panic on large memory regions when map-physical-memory is enabled #262

Closed
@hawkw

Description

@hawkw

Trying to test out a higher half kernel using PR #229, the bootloader panics when the map-physical-memory, map-framebuffer, and dynamic-range-start configurations are all present.

I have the following configurations in my Cargo.toml:

[package.metadata.bootloader]
map-physical-memory = true
# the kernel is mapped into the higher half of the virtual address space.
dynamic-range-start = "0xFFFF_8000_0000_0000"

[patch.crates-io]
# patch `bootloader` to use https://github.com/rust-osdev/bootloader/pull/229
# for dynamic range address configuration support.
#
# remove this patch once rust-osdev/bootloader#229 makes it into a release
# version.
bootloader = { git = "https://github.com/rust-osdev/bootloader", rev = "ac46d0455b41c11e5d316348d068df1c495ce0af" }

I get the following panic:

Err(err) => panic!("failed to map page {:?}: {:?}", page, err),

which fails on a ParentEntryHugeFrame error:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions