rcore-os / rCore-Tutorial-v3

Let's write an OS which can run on RISC-V in Rust from scratch!
https://rcore-os.github.io/rCore-Tutorial-Book-v3/index.html
GNU General Public License v3.0
1.64k stars 468 forks source link

Bug in user/src/bin/sig_simple2.rs #73

Open itewqq opened 2 years ago

itewqq commented 2 years ago

The 2nd parameter of kill here should be 10, not 1<<10. Otherwise you'll get 1<<(1<<10) in os/src/syscall/process.rs#sys_kill