Coder Social home page Coder Social logo

x86_kernel's Introduction

Amora Kernel

Amora is a simple x86 kernel being developed from scratch as a side project for learning purposes.

Currently the kernel has a booloader written in Assembly which sets the GDT, enters protected mode and load a kernel written in C. The kernel has a simple screen driver and handlers for interrupts and the IRQ, which is partly written in Assembly. The PIT interrupt (IRQ0) has been implemented, giving the kernel a periodic interrupt that will be used by the process scheduler later.

Progress

  • Booloader
  • Screen driver
  • Partial Interrupt handler
  • Partial IRQ handler
  • Timed interrupt with PIT
  • Keyboard Interrupt handler
  • Keyboard driver
  • Flat Paging
  • Memory handler
  • Multitasking
  • VFS
  • File system
  • User mode

Compiling and Installing

You just need to run

	$ make

to compile the code. A file called os-image will be created. You can either copy it to a floppy disk or a hard drive with

	# dd bs=512 if=os-image of=/dev/sdX

where sdX is your floppy disk or hard drive device name. However, if you do not have a floppy disk lying around or a spare hard drive, you can run it in qemu (assuming you have it installed) with

	$ make run

Debugging

In order to debug the kernel, we can use qemu+gdb. You can run

	$ make debug

to start qemu in debugging mode, with the processor stopped. It will wait for a gdb connection, which can be established with target remote :1234 typed in gdb.

License

The MIT License (MIT)

Learning Material


No penguins were harmed during the development of this kernel

x86_kernel's People

Contributors

dutra avatar

Watchers

 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.