Comments (6)
【追加】:
关于宏使用的问题目前已解决。
但batch.rs中的用户栈与内核栈依旧有如下问题:
static KERNEL_STACK: KernelStack = KernelStack {
data: [0; KERNEL_STACK_SIZE]
};
以上代码rust-analyzer会报错,说无法发现值,不知是rust-analyzer的问题还是代码的问题。
from rcore-tutorial-v3.
rust-analyzer的问题是因为data
行末需要加一个,
;至于config.toml
我觉得不算什么大问题,只要能跑起来就行。或者可以考虑不用config.toml
,直接在os/Makefile
里面的cargo命令里面加上对应的设置,不过这样会比较麻烦。
from rcore-tutorial-v3.
rust-analyzer的问题是因为
data
行末需要加一个,
;至于config.toml
我觉得不算什么大问题,只要能跑起来就行。或者可以考虑不用config.toml
,直接在os/Makefile
里面的cargo命令里面加上对应的设置,不过这样会比较麻烦。
感谢回复。加了,
还是会报错orz
Makefile的话,是不是不可以用cargo工作空间那样运行了呢
from rcore-tutorial-v3.
rust-analyzer的问题是因为
data
行末需要加一个,
;至于config.toml
我觉得不算什么大问题,只要能跑起来就行。或者可以考虑不用config.toml
,直接在os/Makefile
里面的cargo命令里面加上对应的设置,不过这样会比较麻烦。
目前上述问题均已解决,但是无论是在Linux还是macOS下都出现了无法将应用bin链接到内核的问题。报错如下:
error: Could not find incbin file '/../target/riscv64gc-unknown-none-elf/release/03priv_inst.bin'
|
note: instantiated into assembly here
--> <inline asm>:39:13
这只是其中之一,实际上五个应用链接时都会报错反馈错误。
from rcore-tutorial-v3.
我对cargo工作空间不太了解,你如果想基于它的话可能需要多尝试一下。比如在build.rs
里面打印一下当前工作路径,看看链接的时候到底是在哪个路径下。
from rcore-tutorial-v3.
我对cargo工作空间不太了解,你如果想基于它的话可能需要多尝试一下。比如在
build.rs
里面打印一下当前工作路径,看看链接的时候到底是在哪个路径下。
好的,我再尝试一下。主要是想熟悉一下Cargo的特性,也因为电脑性能有限不太想跑虚拟机orz
感谢耐心回复
from rcore-tutorial-v3.
Related Issues (20)
- 完善Tutorial的错误处理框架
- [ch5 Bug] exec path of user proc HOT 1
- ch9中涉及gui,而提交中对makfile的qemu参数修改没有保留gui配置部分 HOT 2
- Nix flakes 支持
- VirtAddr/PhysAddr::ceil may leads to panic
- 协程的一些想法
- 想运行 iPerf 测试一下网络性能,想请教一下
- chp1 分支上的 rustsbi 版本不能支持 shutdown HOT 1
- 可以提供pdf版的教程吗
- ch3增加关于MAX_APP_NUM相关的编译期检查
- ch9以及main分支不再支持GUI HOT 1
- 请教一个问题,ch4中为什么需要修改user test啊?最近遇到的问题可能与这个有关。 HOT 4
- `MemorySet::copy_data`中的`page_table`参数无需可变引用
- 修改Makefile,在执行QEMU之前检查QEMU版本
- 某些章节的`MEMORY_END`不一致
- 从ch3开始,panic日志无法打印
- Some flaws in rust-toolchain.toml and Dockerfile
- Remove undefined behavior in usertests of ch8
- forktest2 possibly hangs start from ch8
- logging模块无法显示日志内容 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcore-tutorial-v3.