add missing config flags

This commit is contained in:
bunnie 2024-04-01 15:58:16 +08:00
parent b3f695dbc2
commit 7d38d1761e
2 changed files with 6 additions and 2 deletions

View file

@ -9,9 +9,12 @@ use xous_kernel::{SysCall, PID, TID};
use crate::arch::current_pid;
use crate::arch::exception::RiscvException;
use crate::arch::mem::MemoryMapping;
#[cfg(feature = "swap")]
use crate::arch::process::RETURN_FROM_SWAPPER;
use crate::arch::process::{Process as ArchProcess, RETURN_FROM_EXCEPTION_HANDLER};
use crate::arch::process::{Thread, EXIT_THREAD, RETURN_FROM_ISR, RETURN_FROM_SWAPPER};
use crate::arch::process::{Thread, EXIT_THREAD, RETURN_FROM_ISR};
use crate::services::SystemServices;
#[cfg(feature = "swap")]
use crate::swap::Swap;
extern "Rust" {
@ -307,7 +310,7 @@ pub extern "C" fn trap_handler(
crate::arch::syscall::resume(current_pid().get() == 1, process.current_thread())
});
}
#[cfg(feature = "swap")]
RiscvException::InstructionPageFault(RETURN_FROM_SWAPPER, _offset) => {
#[cfg(feature = "debug-swap")]
{

View file

@ -10,6 +10,7 @@ use xous_kernel::{MemoryFlags, PID};
use crate::arch::process::InitialProcess;
use crate::mem::MemoryManager;
#[cfg(feature = "swap")]
use crate::swap::Swap;
// pub const DEFAULT_STACK_TOP: usize = 0x8000_0000;