Coder Social home page Coder Social logo

os-study's Introduction

My simple educational OS for learning purpose. It is bootable in Bochs Emulator, by a virtual flobby disk created by the Makefile, disk.dsk. A big thanks to Broken Thorn’s OS Development series. I must say, this is the best free document for learning how to actually write an OS, not just learning about the concepts, or being confined in some assignment framework where many things are already done and you fill in function body. Although the core material is good overall, some important content is missing and you have to figure it out on your own, otherwise you will get stuck forever. When it comes to code, you are also on your own. The code example is fine, but many are outdated (because newer nasm) or missing important parts. You have to fix it yourself, if you want to proceed through the series. But, this is a good thing to me; I consider this a chance for exercising. I believed you truly understand something when you actually work on it, not just being spoon fed. I learned so much from this.

Current state

The OS does not have a file system, because I want to leave it later. So, different parts of the OS is hard coded in the virtual flobby disk by sectors. For example, the kernel is allocated with 15 sectors, interrupt handling code is allocated with 12 sectors and so on. You can check in the target boot.dsk in the Makefile.

  • Bootloader (first 512 bytes in Master Boot Record)
  • Second stage bootloader
  • Basic VGA text output.
  • Kernel space code (ring 0) It includes code + data descriptor in Global Descriptor Table.
  • Interrupts handling code: currently handles CPU exceptions (i.e. dividie by 0), PIC interrupts.
  • Userspace code (ring 3): code + data descriptor in Global Descriptor Table.
  • Getting memory informaton: total number of memory and system memory map.
  • Virtual memory managment (in progress).

Demo:

os-screenshot.jpg

Future

  • Input with keyboard
  • Shell
  • DMA
  • File system
  • Port the kernel part to C

os-study's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.