Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resources for writing kernel in C

Tags:

c

kernel

osdev

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 resource (book / tutorial) for accomplishing this goal?

Thanks!

like image 503
anon Avatar asked Dec 17 '22 02:12

anon


2 Answers

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!!

like image 190
Martin Avatar answered Jan 11 '23 09:01

Martin


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.

like image 40
ZelluX Avatar answered Jan 11 '23 10:01

ZelluX