oscourse-tsinghua / rcore_plus

Rust version of THU uCore OS. Linux compatible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust user programs cannot run in release mode

jiegec opened this issue · comments

commented
commented

After reading assembly and some searching, it is fixed in rcore-os/rcore-user@a8497fb.

Reason: syscall clobbers rcx and r11 registers. Tell compiler about this.
Ref: https://stackoverflow.com/questions/50571275/why-does-a-syscall-clobber-rcx