Coder Social home page Coder Social logo

paulos's Introduction

PaulOS

My take on geohot's fromthetransistor operating system section (section 5)

Kernel Design: Monolithic

Linux-ish:
* only user space threads
* open, read, write, close
* fork, execve, wait, sleep, exit
* mmap, munmap, mprotect
* Consider the debug interface you are using, ranging from printf to perhaps a gdbremote stub into kernel


Requirements:
- make
- cross compiler for i386 (check out [https://wiki.osdev.org/GCC_Cross-Compiler])
- grub
- xorriso
- qemu
NOTE: these requriements are not exactly the packages needed to be installed


Build:
./build.sh

Clean:
./clean.sh

Run (using qemu-system-i386):
./run.sh

For multiboot kernel (directly without bootable medium):
$ qemu-system-i386 -kernel PaulOS.bin


STEPS:
- interrupt handlers
- process management
- paging + memory map (physical first, then paging)
- usermode -> syscalls (open, read, write, ...)
- shell
- drivers(?)
- filesystem


TODO:
* output object files in build/ (modify Makefile)
* replace "" with <> in includes

* implement interrupts and exceptions
* plan memory map (virtual and physical)
* move on with syscalls
* malloc/free (mmap, munmap, mprotect)
* open, read, write, close
* fork, execve, wait, sleep, exit
* build drivers

check out:
- https://wiki.osdev.org/Main_Page
- https://github.com/SerenityOS/serenity

paulos's People

Contributors

paplakidis 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.