Merge pull request #155 from zflcs/main

Remove redundant operation about user thread stack
This commit is contained in:
chyyuu 2024-12-02 13:06:29 +08:00 committed by GitHub
commit fb2a6a04e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -199,7 +199,7 @@ impl Runtime {
available.ctx.x1 = guard as u64; //ctx.x1 is old return address 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.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; available.state = State::Ready;
} }