Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rCore-Tutorial-Book-2021Autumn/0setup-devel-env #10

Open
utterances-bot opened this issue Jan 23, 2022 · 2 comments
Open

rCore-Tutorial-Book-2021Autumn/0setup-devel-env #10

utterances-bot opened this issue Jan 23, 2022 · 2 comments

Comments

@utterances-bot
Copy link

第零章:实验环境配置 - rCore-Tutorial-Autumn2021 文档

https://learningos.github.io/rCore-Tutorial-Book-2021Autumn/0setup-devel-env.html

Copy link

Updated @ 220123 22:52
问题 执行make run时遇到cannot find macro asm in this scope的报错
解决 参考 Issue 在无法识别的源文件首部加上:

use core::arch::asm;
use core::arch::global_asm;

其中需要添加的文件如下:

./os/src
├── main.rs
├── mm
│   └── memory_set.rs
├── sbi.rs
├── task
│   └── switch.rs
└── trap
    └── mod.rs

./user/src
└── syscall.rs

备注 可能需要切换至nightly
目前已测试rustc 1.60.0-nightly (bfe156467 2022-01-22)可用

@duskmoon314
Copy link

@harrychong2118 这个是 rust 在 nightly 进入 1.59.0 后稳定了 asm 特性带来的改变,在本实验框架设计时还未有此变化。之后这应该会正式进入 stable。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants