Skip to content

Commit

Permalink
Merge pull request #155 from zflcs/main
Browse files Browse the repository at this point in the history
Remove redundant operation about user thread stack
  • Loading branch information
chyyuu authored Dec 2, 2024
2 parents 29db2e2 + d6b54ee commit fb2a6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/src/bin/stackful_coroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Runtime {

available.ctx.x1 = guard as u64; //ctx.x1 is old return address
available.ctx.nx1 = f as u64; //ctx.nx2 is new return address
available.ctx.x2 = s_ptr.offset(-32) as u64; //cxt.x2 is sp
available.ctx.x2 = s_ptr as u64; //cxt.x2 is sp
}
available.state = State::Ready;
}
Expand Down

0 comments on commit fb2a6a0

Please sign in to comment.