Skip to content

Commit

Permalink
x86_64: move module non-exe regions to top of lower half
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Feb 7, 2025
1 parent 7182e64 commit ca05faf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions oro-arch-x86_64/src/mem/address_space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ impl AddressSpaceLayout {
/// if the segment is used for userspace.
pub const KERNEL_SECONDARY_BOOT_IDX: usize = 0;

/// The index for the module segments.
pub const MODULE_EXE_IDX: (usize, usize) = (0, 232);
/// The index for the module thread interrupt stack.
pub const MODULE_INTERRUPT_STACK_IDX: usize = 2;
pub const MODULE_INTERRUPT_STACK_IDX: usize = 234;
/// The index for the module thread stack segment.
pub const MODULE_THREAD_STACK_IDX: usize = 3;
pub const MODULE_THREAD_STACK_IDX: usize = 236;
/// The index for the module thread-local data segment.
pub const MODULE_THREAD_LOCAL_IDX: (usize, usize) = (4, 16);
/// The index for the module segments.
pub const MODULE_EXE_IDX: (usize, usize) = (17, 255);
pub const MODULE_THREAD_LOCAL_IDX: (usize, usize) = (238, 255);

/// The recursive index for the page table.
pub const RECURSIVE_IDX: usize = 256;
Expand Down

0 comments on commit ca05faf

Please sign in to comment.