Re:Operating System Development Series (2008)
by octo_t on Saturday August 24, 2013 @10:07AM
(#6268680)
If you are also interested in OS development, Stanford has developed Pintos[1] which is designed to teach OS concepts: threads, system calls (and the security thereof), virtual memory and filesystems.
Unfortunately it was essentially samizdat until 1996. But it's an excellent work, and e.g. taught me pointers when the K&R chapter on pointers and arrays didn't work for me.
Re:Operating System Development Series (2008)
by aray on Sunday August 25, 2013 @03:53AM
(#6271291)
Tanenbaum's ineffable "Operating Systems Design and Implementation" and MINIX (a learning OS) existed then, and was what Linus Torvalds studied before creating Linux:
Re:Operating System Development Series (2008)
by gpsarakis on Saturday August 24, 2013 @12:17PM
(#6269016)
I particularly focused on this section http://www.brokenthorn.com/Resources/OSDev18.html . Although not mandatory for development, having a grasp of these concept does give a better insight. Well done!
Re:Operating System Development Series (2008)
by tankenmate on Sunday August 25, 2013 @01:53AM
(#6271072)
This site is focused only on x86 rather than x86_64. In fact you'll find that this organisation of permissions within the kernel using 4 ring levels will only work on x86 as most other ISAs only have two levels, supervisor and user (ARM, MIPS, SPARC et aia).
It's still a very incomplete system: it loads, sets up IDT/GDT, uses several simple drivers for keyboard, timers, serial interfaces, probing PCI bus, an effort to write a floppy disk driver (I could test it on virtual machines only though). There's a demo of multitasking, a demo of going to userspace and doing system calls, a demo of VFS and RAM-fs (I overcomplicated it and got stuck, but I have not rewritten it yet).
These articles were an invaluable source of information and a starting point for design.
[1] - http://www.stanford.edu/class/cs140/projects/pintos/pintos.h...
http://www.jamesmolloy.co.uk/tutorial_html/index.html
I think in the end the best resource I found was something called "DS-OS", a basic assembly OS implementation. Looks like it's online at http://forum.osdev.org/viewtopic.php?f=2&t=22083
This stuff got me into lower-level (than VB) computer programming-- good memories.
Unfortunately it was essentially samizdat until 1996. But it's an excellent work, and e.g. taught me pointers when the K&R chapter on pointers and arrays didn't work for me.
http://www.amazon.com/dp/0131429388
The project aims to introduce OS concepts to CS students, thus the code readability was the number one priority.
The main features include:
- Preemptive multitasking
- Doug Lea's Malloc as the heap manager for both Kernel and User side.
- Read-only ram disk (which is simply a tar file passed as a GRUB module)
- A (very) simple user Shell
[1] - https://github.com/ersenal/Incitatus-OS
[2] - https://github.com/ersenal/Incitatus-OS/blob/master/disserta...
It's still a very incomplete system: it loads, sets up IDT/GDT, uses several simple drivers for keyboard, timers, serial interfaces, probing PCI bus, an effort to write a floppy disk driver (I could test it on virtual machines only though). There's a demo of multitasking, a demo of going to userspace and doing system calls, a demo of VFS and RAM-fs (I overcomplicated it and got stuck, but I have not rewritten it yet).
These articles were an invaluable source of information and a starting point for design.
http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/