【问题标题】:Pintos Programming Project 2Pintos 编程项目 2
【发布时间】:2013-12-29 07:12:19
【问题描述】:

是否必须为第二个项目(用户程序)以不同的方式安装 Pintos?每当我尝试在我的安装上运行 pintos -f -q 时,我都会收到一个错误,即 Pintos 无法识别参数“-f”。

Back to tcg accelerator.
PiLo hda1
Loading..........
Kernel command line: -f -q
Kernel PANIC at ../../threads/init.c:264 in parse_options(): unknown option `-f' (use -h for help)
Call stack: 0xc00283de.
The `backtrace' program can make call stacks useful.
Read "Backtraces" in the "Debugging Tools" chapter
of the Pintos documentation for more information.

这是 Pintos 处理所有参数的地方: http://www.cse.iitd.ernet.in/~sbansal/csl373/pintos/doc/pintos_html/init_8c-source.html 我也无法在任何地方找到 FILESYS 的定义。有人可以帮我吗?

【问题讨论】:

  • 您是从userprog 目录而不是threads 目录编译和运行Pintos?

标签: linux operating-system pintos


【解决方案1】:

utils/pintos 中将行号259 更改为/home/<your home username>/<pintos dir>/src/userprog/build/kernel.bin

utils/Pintos.pm 中将行号362 更改为/home/<your home username>/<pintos dir>/src/userprog/build/loader.bin

再次在userprogutils 中运行make

【讨论】:

    【解决方案2】:

    遇到同样的问题 您需要将 Kernel 和 Loader 指向 userprog/build 中的 Kernel 和 Loader,而不是像安装 pintos 时所做的那样指向 threads/build

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-13
      • 2020-06-19
      • 2014-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-12
      相关资源
      最近更新 更多