mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
reflect swap offset patches in atamsam5d27 arch
This commit is contained in:
parent
8abb126577
commit
8c82d710bb
1 changed files with 2 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ pub fn map_structs_to_kernel(cfg: &mut BootConfig, table_addr: usize, krn_struct
|
|||
dprintln!("Making the kernel arguments visible");
|
||||
cfg.map_page(translation_table, 0x20100000, 0x20100000, FLG_R | FLG_X | FLG_VALID, 1 as XousPid);
|
||||
|
||||
for addr in (0..cfg.init_size - GUARD_MEMORY_BYTES).step_by(PAGE_SIZE) {
|
||||
for addr in (0..cfg.init_size - GUARD_MEMORY_BYTES + cfg.swap_offset).step_by(PAGE_SIZE) {
|
||||
cfg.map_page(
|
||||
tt,
|
||||
addr + krn_struct_start,
|
||||
|
|
@ -400,7 +400,7 @@ pub fn map_kernel_to_processes(
|
|||
}
|
||||
|
||||
println!("Mapping kernel structures to PID{}", process.asid);
|
||||
for addr in (0..cfg.init_size - GUARD_MEMORY_BYTES).step_by(PAGE_SIZE) {
|
||||
for addr in (0..cfg.init_size - GUARD_MEMORY_BYTES + cfg.swap_offset).step_by(PAGE_SIZE) {
|
||||
cfg.map_page(
|
||||
translation_table,
|
||||
addr + krn_struct_start,
|
||||
|
|
|
|||
Loading…
Reference in a new issue