Skip to content
Snippets Groups Projects
Commit e07c3ac0 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Set init namespace to 1

parent 244069cf
No related branches found
No related tags found
1 merge request!57Capability mode support using null namespace
......@@ -41,7 +41,7 @@ use alloc::arc::Arc;
use core::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
use spin::Mutex;
use scheme::FileHandle;
use scheme::{FileHandle, SchemeNamespace};
pub use consts::*;
......@@ -146,6 +146,8 @@ pub fn kmain(cpus: usize, env: &[u8]) -> ! {
match context::contexts_mut().spawn(userspace_init) {
Ok(context_lock) => {
let mut context = context_lock.write();
context.rns = SchemeNamespace::from(1);
context.ens = SchemeNamespace::from(1);
context.status = context::Status::Runnable;
let mut context_env = context.env.lock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment