2024-10-19 15:50:39 +02:00
2024-10-18 17:18:24 +02:00
2024-10-19 12:09:06 +02:00
2024-10-19 15:50:39 +02:00
2024-10-10 10:03:58 +02:00
2024-10-05 15:13:36 +02:00
2024-10-18 17:18:24 +02:00
2024-10-18 17:18:24 +02:00
2024-10-18 17:18:24 +02:00
2024-10-19 12:09:06 +02:00

kern.


Idk why i called it that it was 3am and i needed sleep

About

Kern is a 32-bit OS based on the x86 architecture written in NASM Assembly and C. I'm working on a basic command line as well as a custom unix-esque filesystem. It has a simple shell with some commands. (Use 'help' for a list of available ones)

Since there's always more to do, here are the todos.

Features

  • Filesystem
  • Interactive Shell
  • Disk I/O
  • Font support (funky format)
  • 1920x1080 Resolution, 32bpp
  • Physical memory manager
  • Virtual memory manager
  • Syscalls

Building & Running

If you want to try kern for some reason, you can.

Tools

Unix Like Systems

On MacOS

  • A cross compiler: $ brew tap nativeos/i386-elf-toolchain && brew install i386-elf-binutils i386-elf-gcc

Commands

$ make # Or 'make os'
$ make run # Run QEMU

I personally wouldn't recommend running this on real hardware, because it's untested and will just probably break you pc, but if you really want to, you can try it, but don't blame me if something goes wrong.

Some images

Interactive Shell:
Example shell output

Filesystem:
Ls command output and some file reading

Graphics test:
Some colorfull shapes :)

These images may be outdated, Idk

Known issues

  • fillCircle() in graphics.h is broken. No idea why, so no filled circles for you (i commented out the boundaryFill call in the function)
  • convertColor() doesn't work right, because i should be using floating point, but -mgeneral-regs-only doesn't let me :(
  • The soundtest command and sleep commands cause an unknown exception. Sleep() syscall issue
  • Not really an issue, bit QEMU's PIT is really slow and inacurate

Old Version

S
Description
No description provided
Readme GPL-3.0
1.3 MiB
Languages
C 93%
Makefile 3.6%
Assembly 2.3%
Linker Script 1.1%