diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 9ca538bab..b165f1e9f 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -228,11 +228,13 @@ fn main() -> Result<(), Box> { } Some("renode-swap") => { builder.target_renode(); + // It is important that this is the first service added, because the swapper *must* be in PID 2 + builder.add_service("xous-swapper", true); + builder.add_kernel_feature("swap"); for service in base_pkgs { builder.add_service(service, true); } - builder.add_service("xous-swapper", true); builder.add_apps(&get_cratespecs()); }