We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29db2e2 + d6b54ee commit fb2a6a0Copy full SHA for fb2a6a0
user/src/bin/stackful_coroutine.rs
@@ -199,7 +199,7 @@ impl Runtime {
199
200
available.ctx.x1 = guard as u64; //ctx.x1 is old return address
201
available.ctx.nx1 = f as u64; //ctx.nx2 is new return address
202
- available.ctx.x2 = s_ptr.offset(-32) as u64; //cxt.x2 is sp
+ available.ctx.x2 = s_ptr as u64; //cxt.x2 is sp
203
}
204
available.state = State::Ready;
205
0 commit comments