mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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");
|
dprintln!("Making the kernel arguments visible");
|
||||||
cfg.map_page(translation_table, 0x20100000, 0x20100000, FLG_R | FLG_X | FLG_VALID, 1 as XousPid);
|
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(
|
cfg.map_page(
|
||||||
tt,
|
tt,
|
||||||
addr + krn_struct_start,
|
addr + krn_struct_start,
|
||||||
|
|
@ -400,7 +400,7 @@ pub fn map_kernel_to_processes(
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("Mapping kernel structures to PID{}", process.asid);
|
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(
|
cfg.map_page(
|
||||||
translation_table,
|
translation_table,
|
||||||
addr + krn_struct_start,
|
addr + krn_struct_start,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue