Skip to content
A simple 32 bit OS, written in NASM and C.
C Assembly Shell Python Matlab M
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
files
IDT.c
KFS_builder.py
KFS_template.asm
README.md
boot.sh
bootloader_stage1.asm
bootloader_stage2.asm
buildData.c
buildData.h
compile.sh
driver.c
driver.h
editor.c
editor.h
int.asm
kernel.c
kernel.h
kernel_entry.asm
malloc.c
malloc.h
sh_exec.c
sh_exec.h
sh_lisp.c
shell_commands.c
shell_commands.h
util.c
util.h

README.md

KevinOS Notes:

Compilation:

  • $ ./compile.sh write overwrites the filesystem of /dev/sdb -- be careful!

  • $ qemu-system-i386 os-image can be used for quicker testing, if recompilation is not necessary.

  • Testing is done with QEMU on a Lenovo T430. Development done on 64-bit Linux Mint Debian Edition with the standard GNU toolchain (GCC, LD, etc).

Features:

KevinOS currently loads a 32-bit C kernel in Protected Mode. It detects all interrupt calls and has basic PIT-handling code. Keypress detection for a standard laptop keyboard is more or less complete and the OS boots to a very basic shell. A basic text-buffer editor is available with edit, and code in a pseudo-assembly language can be run with exec. A very naive malloc is in place, perhaps someday it'll be more than the bare minimum. The shell has a few odds and ends (beeps, PRNG, etc). A custom file system (KFS) is used, just for kicks.

Unlicense:

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to http://unlicense.org/

Something went wrong with that request. Please try again.