allow user to access IO port
TODO: setup IO bitmap in TSS
@@ -172,7 +172,7 @@ impl Thread {
context.general.rsp = stack;
context.general.rdi = arg1;
context.general.rsi = arg2;
- context.general.rflags |= 0x202;
+ context.general.rflags |= 0x3202;
context.vector.fcw = 0x37f;
inner.state = ThreadState::Running;
self.base.signal_set(Signal::THREAD_RUNNING);
@@ -191,7 +191,7 @@ impl Thread {
let mut inner = self.inner.lock();
let context = inner.context.as_mut().ok_or(ZxError::BAD_STATE)?;
context.general = regs;
- context.general.rflags |= 0x202;
+ context.general.rflags |= 0x3202;
context.vector.fcw = 0x37f;
inner.state = ThreadState::Running;
self.base.signal_set(Signal::THREAD_RUNNING);
