Skip to content

Commit 81f0743

Browse files
authored
Update ch8 1thread.rst
1 parent 75c62c4 commit 81f0743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/chapter8/1thread.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
236236
available.ctx.x1 = guard as u64; //ctx.x1 is old return address
237237
available.ctx.nx1 = f as u64; //ctx.nx1 is new return address
238-
available.ctx.x2 = s_ptr.offset(32) as u64; //cxt.x2 is sp
238+
available.ctx.x2 = s_ptr.offset(-32) as u64; //cxt.x2 is sp
239239
240240
}
241241
available.state = State::Ready;

0 commit comments

Comments
 (0)