mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2025-01-18 04:57:13 +04:00
Remove redundant operation about user thread stack
This commit is contained in:
parent
29db2e2d9f
commit
d6b54eea7c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user