From fd9c9449b02599273cf4b1d8f88948e728692a44 Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Sat, 25 Apr 2020 23:26:14 -0400 Subject: [PATCH] Allow sleeping processes that are awoken to immediately execute. --- risc_v/src/sched.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/risc_v/src/sched.rs b/risc_v/src/sched.rs index 2a138fc..ebdb3f2 100755 --- a/risc_v/src/sched.rs +++ b/risc_v/src/sched.rs @@ -32,6 +32,8 @@ pub fn schedule() -> usize { // the past. if prc.get_sleep_until() <= get_mtime() { prc.set_state(ProcessState::Running); + frame_addr = prc.get_frame_address(); + break 'procfindloop; } }, _ => {},