Skip to content

Minimal, collaboratively written kernel

Notifications You must be signed in to change notification settings

GamerLate8/MellOs

 
 

Repository files navigation

Mellotron Kernel (MellOS)

A minimal, collaboratively written kernel

Why MellOS

A while back I was gifted a 1994 Compaq Presario, and I figured I could use it to learn how to write a simple operating system. I started writing some real mode programs, and eventually I moved on to writing a simple 32 bit kernel.

I decided to share my results and progress for a couple of reasons, the main of which might be letting you have fun with this as much as I am, but also to share the ways I fixed my misconceptions, and the resources that helped me move on whenever I got stuck.

Some useful resources

Some of the resources I found most useful are the OSDEV wiki, osdever.net (from which I basically stole the part regarding interrupts), this keyboard scancode map, and of course the most fundamental of all resources: RTFM!!!

Another useful resource is the book "operating systems: principles and practice" by Thomas Anderson (no, not that Mr. Anderson) and Michael Dahlin. I used it to study for my OS class at university and I think it's a very good introduction to the subject.

Future of MellOS

I'm doing this in my spare time, which basically means "during a small part of the summer and a week or so around Christmas". Feel free to do whatever you like with this, as long as you don't physically (nor psychologically) harm people or other animals I'm absolutely fine with it.

Feel free to make pull requests and they'll be processed whenever possible.

Contributions

Special thanks to all of those who contributed. Your changelogs will be integrated in contributions.md

Features

Current

As simple as it can get:

  • Simple bootloader, loads the kernel in memory and jumps to it
  • Monolithic kernel
  • Flat memory model (just the strictly necessary segmentation (data/code), paging is in the making)
  • Interrupt request handling, keyboard and timer support
  • Linear dynamic memory allocation (with some tricks not to make it too inefficient - placeholder for future decent allocation method)
  • GDT (Different from the one in the Bootloader)
  • TTY-ish system to print to screen: allows to print to one of many canvases

Work in progress

  • Dynamic, Modular Shell (will run executables when processes will be a thing)
  • File System
  • Paging

Future

  • Process abstraction

About

Minimal, collaboratively written kernel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.9%
  • Assembly 10.8%
  • Shell 6.6%
  • Makefile 2.7%