Kernel 101 – Let’s write a Kernel
arjunsreedharan.org
Kernel 101 – Let’s write a Kernel
1–10 of 104 posts
Re: Kernel 101 – Let’s write a Kernel
#2edit: I misread. 0x07 is intentional, 0x02 was mentioned as an alternative. Good post!
Re: Kernel 101 – Let’s write a Kernel
#3Re: Kernel 101 – Let’s write a Kernel
#4Neat read so far! Not done yet, but I think I've found a small error in kernel.c: the attribute byte of the characters in "my first kernel" should be set to 0x02, not 0x07. edit: I misread. 0x07 is intentional, 0x02 was mentioned as an alternative. Good post!
Re: Kernel 101 – Let’s write a Kernel
#5Re: Kernel 101 – Let’s write a Kernel
#6I'm not exactly Linus Torvalds but I'm pretty sure a program that prints one line of text is not "a kernel". :)
Re: Kernel 101 – Let’s write a Kernel
#7I'm not exactly Linus Torvalds but I'm pretty sure a program that prints one line of text is not "a kernel". :)
Re: Kernel 101 – Let’s write a Kernel
#8I'm not exactly Linus Torvalds but I'm pretty sure a program that prints one line of text is not "a kernel". :)
It might actually be interesting to take these techniques and apply them to something else. Maybe a demo, ala the demoscene, that runs on the bare metal. Maybe implement a game that doesn't have the overhead of an os.
This is less a finished product and more an inspiration. So often I think that people miss that about things. Sometimes things aren't done, sometimes they're just beginning.
Re: Kernel 101 – Let’s write a Kernel
#9Neat read so far! Not done yet, but I think I've found a small error in kernel.c: the attribute byte of the characters in "my first kernel" should be set to 0x02, not 0x07. edit: I misread. 0x07 is intentional, 0x02 was mentioned as an alternative. Good post!
Here's what he posted:
Not an error. 0x02 means green character on black background. 0x07 means light grey character on black bg. It's explained with one, and coded with another.
Re: Kernel 101 – Let’s write a Kernel
#10I also really enjoyed James Molloy's OS kernel development tutorial at http://www.jamesmolloy.co.uk/tutorial_html/, which takes you from "Hello World" to some real toy OS kernel implementation.