cccriscv / mini-riscv-os Goto Github PK
View Code? Open in Web Editor NEWBuild a minimal multi-tasking OS kernel for RISC-V from scratch
License: Other
Build a minimal multi-tasking OS kernel for RISC-V from scratch
License: Other
There is a wraparound on CLINT_MTIMECMP (function timer_handler() inside 04-TimerInterrupt/timer.c).
If you set the interval to 1000000, the wraparound occurs just after a few minutes of Qemu running.
Once the wraparound has occurred, the timer starts firing at an extremely tiny delay (of course different than the one that was set).
我在遵循文件安裝相關套件並設定好環境變數後,進入 01-HelloOs
嘗試讓他開始執行。
make
IAN@DESKTOP-9AEMEPL MINGW64 ~/Desktop/mini-riscv-os/01-HelloOs (master)
$ make
riscv64-unknown-elf-gcc -nostdlib -fno-builtin -mcmodel=medany -march=rv32ima -mabi=ilp32 -T os.ld -o os.elf start.s os.c
process_begin: CreateProcess(NULL, riscv64-unknown-elf-gcc -nostdlib -fno-builtin -mcmodel=medany -march=rv32ima -mabi=ilp32 -T os.ld -o os.elf start.s os.c, ...) failed.
make (e=2): ▒t▒Χ䤣▒▒▒▒w▒▒▒ɮסC
make: *** [os.elf] Error 2
想請問有可能是哪個環節出了錯誤,謝謝。
你好,
针对 05-Preemptive 这个例子,sys_timer 函数通过 mret 跳转到 sys_kernel 中去执行切换人物的工作,但我认为此时中断已经开了,我怀疑 万一在此期间发生timer interrupt 是不是会有问题?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.