match new API for accessing swap

This commit is contained in:
bunnie 2024-04-07 19:00:18 +08:00
parent bd54417e44
commit 8aa20e65f6

View file

@ -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") {