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.
1 parent 29db2e2 commit d6b54eeCopy full SHA for d6b54ee
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