Resources for writing kernel in C
I don't want to write my own boot loader -- happy to use Grub.
I just want to implement pre-emptive multi threading, a basic file system, and virtual memory.
I want something that can run on top of qemu.
What's a good r开发者_运维知识库esource (book / tutorial) for accomplishing this goal?
Thanks!
The tutorials at osdev.org should get you started. They even have a page for getting started. Writing an OS is not for the faint of heart. Good luck!!
You may also refer to the labs on MIT 6.828, the support code can be checked out by git clone http://pdos.csail.mit.edu/6.828/2009/jos.git, and it's easier for you to implement your own kernel from here.
i think the best way would be to just pickup any of the toy micro-os projects (see freshmeat.net) and look how it's done
精彩评论