mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
match new API for accessing swap
This commit is contained in:
parent
bd54417e44
commit
8aa20e65f6
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ pub fn read_initial_config(cfg: &mut BootConfig) {
|
|||
#[cfg(feature = "swap")]
|
||||
pub fn read_swap_config(cfg: &mut BootConfig) {
|
||||
// Read in the swap arguments: should be located at beginning of the first page of swap.
|
||||
let page0 = cfg.swap_hal.as_mut().unwrap().decrypt_page_at(0);
|
||||
let page0 = cfg.swap_hal.as_mut().unwrap().decrypt_src_page_at(0);
|
||||
let swap_args = KernelArguments::new(page0.as_ptr() as *const usize);
|
||||
for tag in swap_args.iter() {
|
||||
if tag.name == u32::from_le_bytes(*b"IniS") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue