Code Monkey home page Code Monkey logo

sxs_os's Introduction

SxS OS

A dive-in-at-the-deep-end education in the nitty-gritty workings of an Operating System.

"What I cannot create I do not understand"

All code is heavily commented to provide an educational commentary of exactly what is going on. Please dive in.

Features

  • A custom-written but fairly standard boot loader
  • A screen driver for outputting to the screen
  • A port driver for communicating with various I/O chips: PIT, PIC, the screen etc
  • Excpetion handlers
  • Interrupt handlers, supporting a timer & keyboard input

Requirements

Requires qemu to be installed:

On Mac:

brew install qemu

You'll also need these cross compilers so that you can compile for your target. On Mac you can get them pre-built.

brew tap nativeos/i386-elf-toolchain
brew install i386-elf-binutils i386-elf-gcc i386-elf-gdb

Build & Run

  • make run to run the Operating System in QEMU

  • make run-debug to run with debugger listener. Execution will halt until the debugger is attached. Run the QEMU attach debug configuration included in the .vscode/launch.json. The process execution will begin and you now have debug capability from your editor.

Misc

In the tools folder you'll find some useful resources for further explanation of all of this.

There are also some scripts for disassembly which are useful too.

sxs_os's People

Contributors

samxsmith avatar

Watchers

 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.