Giter Site home page Giter Site logo

Comments (6)

PeterWrighten avatar PeterWrighten commented on May 16, 2024

【追加】:
关于宏使用的问题目前已解决。

但batch.rs中的用户栈与内核栈依旧有如下问题:

static KERNEL_STACK: KernelStack = KernelStack {    
    data: [0; KERNEL_STACK_SIZE] 
};

以上代码rust-analyzer会报错,说无法发现值,不知是rust-analyzer的问题还是代码的问题。

from rcore-tutorial-v3.

wyfcyx avatar wyfcyx commented on May 16, 2024

rust-analyzer的问题是因为data行末需要加一个,;至于config.toml我觉得不算什么大问题,只要能跑起来就行。或者可以考虑不用config.toml,直接在os/Makefile里面的cargo命令里面加上对应的设置,不过这样会比较麻烦。

from rcore-tutorial-v3.

PeterWrighten avatar PeterWrighten commented on May 16, 2024

rust-analyzer的问题是因为data行末需要加一个,;至于config.toml我觉得不算什么大问题,只要能跑起来就行。或者可以考虑不用config.toml,直接在os/Makefile里面的cargo命令里面加上对应的设置,不过这样会比较麻烦。

感谢回复。加了,还是会报错orz
Makefile的话,是不是不可以用cargo工作空间那样运行了呢

from rcore-tutorial-v3.

PeterWrighten avatar PeterWrighten commented on May 16, 2024

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.

wyfcyx avatar wyfcyx commented on May 16, 2024

我对cargo工作空间不太了解,你如果想基于它的话可能需要多尝试一下。比如在build.rs里面打印一下当前工作路径,看看链接的时候到底是在哪个路径下。

from rcore-tutorial-v3.

PeterWrighten avatar PeterWrighten commented on May 16, 2024

我对cargo工作空间不太了解,你如果想基于它的话可能需要多尝试一下。比如在build.rs里面打印一下当前工作路径,看看链接的时候到底是在哪个路径下。

好的,我再尝试一下。主要是想熟悉一下Cargo的特性,也因为电脑性能有限不太想跑虚拟机orz
感谢耐心回复

from rcore-tutorial-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.