riscv作业 | computer ogranizaion作业 – Assignment 2

Assignment 2

riscv作业 | computer ogranizaion作业 – 这是一个关于riscv的题目, 主要考察了关于riscv的内容

AI代写 代做机器学习 ai代做 machine learning代写 ML代做

  1. .pdf
  2. lab.zip (lab) sak AI 1 [20pts] make qemumakefilelabel

2 [20pts] /lab/tools/kernel.ldhttp s://sourceware.org/binutils/docs/ld/Scripts.html

3 [10pts] /lab/kern/init/init.c mainmemset(edata, 0, end – edata); init.c, kernel.ld) 4 [20pts] cputs()sbi 5 [30pts] lab.zipecall shutdown() while(1);

qemu-system-riscv64 \
-machine virt \
-nographic \
-b ios default \
-device loader,file=bin/ucore.bin,addr=0x

(while)

riscv-sbi-doc/riscv-sbi.adoc at master riscv-non-isa/riscv-sbi-doc (github.com)

//init.c
//------------------------------------
cputs("The system will close.\n");
shutdown();
// -----------------------------------
while ( 1 )
;