Skip to content

jjwang/HanOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HanOS - Microkernel-based General Purpose Operating System

English | 中文

Design as below

  • Bootloader: Limine is used to get the kernel running as quickly possible. Limine boot protocol is chosed by HanOS.
  • CPU mode: x86-64 Long Mode is supported in HanOS. HanOS does not has plan to support other x86 modes.
  • GUI: GUI will not be the 1st priority for HanOS. But HanOS will port some GUI libraries in the future.

Progress update

  • Framebuffer based terminal and kernel log system
  • Initialize GDT and IDT to handle exceptions
  • Physical memory allocator and virtual memory manager
  • Parse ACPI tables and initialize MADT
  • Start up all CPUs
  • Set up APIC(Advanced Programmable Interrupt Controller) interrupt controller
  • Read RTC time from CMOS and configure HPET timer
  • Scheduling driven by APIC timer
  • Keyboard/mouse driver and command line interface
  • VFS, FAT32 and RAMFS file system. RAMFS is for loading and executing program from ELF file
  • Tasks of kernel and user space
  • Background image display for command line interface
  • Implement syscalls for bash and other system tools
  • Simple userspace shell apps ported from xv6

Fonts

bdf2psf gohufont-14.bdf /usr/share/bdf2psf/standard.equivalents /usr/share/bdf2psf/ascii.set 256 gohufont-14.psf

How to run

  • The disk image file - "hdd.img" in release folder can be used for test.

qemu-system-x86_64 -serial stdio -M q35 -m 1G -smp 2 -no-reboot -rtc base=localtime -drive id=handisk,if=ide,format=raw,bus=0,unit=0,file=hdd.img

Screenshots

  • Oct 17, 2023: Userspace Shell Demo

Cool~~~

About

Microkernel-based General Purpose Operating System #Hobby OS#

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published