chyyuu
chyyuu
@Andre-HJR 很不错!建议能否写成一个QA,并提交PR,便于大家学习?谢谢!
在 ubuntu上 sudo apt install ninja-build 就可以安装好这个工具了。 > 老版本的Qemu-5.0.0不支持新的代码,需要按实验指导书来更新为qumu-7.0.0,但是需要安装依赖ninja,可以按照[https://blog.csdn.net/qq_19707521/article/details/111176909的指导来完成,但是根据本人实测,命令“git](https://blog.csdn.net/qq_19707521/article/details/111176909%E7%9A%84%E6%8C%87%E5%AF%BC%E6%9D%A5%E5%AE%8C%E6%88%90%EF%BC%8C%E4%BD%86%E6%98%AF%E6%A0%B9%E6%8D%AE%E6%9C%AC%E4%BA%BA%E5%AE%9E%E6%B5%8B%EF%BC%8C%E5%91%BD%E4%BB%A4%E2%80%9Cgit) clone git://github.com/ninja-build/ninja.git && cd ninja”中的“git:”需要改为“https”才能clone完成。
老的写法是希望直观地表达通过条件变量实现同步是需要互斥锁的。 而你的写法 condvar.wakup(mutex); 虽然少了一条语句,但并没有直观表达出何时执行unlock(mutex)操作的过程。 如果把wakup(mutex)的实现也写出来,那和老的两步的写法也没啥差别了。 所以,我个人觉得老的写法相对比较直观。 > 在 https://learningos.github.io/rust-based-os-comp2022/chapter8/4condition-variable.html 中, conditional variable 的wakeup函数是不带任何参数的,例如: > > ```rust > unsafe fn first() -> ! { > mutex.lock(); > A=1; > condvar.wakup(); >...
Using "cargo run -p zircon-loader prebuilt/zircon" method to run zcore, zcore is running in user-mode of Linux. I think the REAL problem is there are no simulated device(like qemu) in...
The old version of zCore in user mode can run in linux. Please try ``` cd zCore; git check e0ea3b01f92a ; cargo run --release -p zircon-loader prebuilt/zircon ``` commit e0ea3b01f92a10180a2868d19d50ca632f8bc953...
Thank you. I guess: If we build static apps with modified libc .a (syscall --> function call), then these static apps should work correctly.
Using "cargo run -p zircon-loader prebuilt/zircon" method to run zcore, zcore is running in user-mode of Linux. I think the REAL problem is there are no simulated device(like qemu) in...
The old version of zCore in user mode can run in linux. Please try ``` cd zCore; git check e0ea3b01f92a ; cargo run --release -p zircon-loader prebuilt/zircon ``` commit e0ea3b01f92a10180a2868d19d50ca632f8bc953...
谢谢!在source目录源文件中已修改。下次deploy后html会更新。
@zhugy08 可否试试 https://github.com/chyyuu/os_kernel_lab/tree/v4-null-to-mini-and-usr-to-baremetal-runtime 中的https://github.com/chyyuu/os_kernel_lab/commit/fe33ed0788c2575c853e7ba76922c466aea60b00