Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.95 KB

README.MD

File metadata and controls

53 lines (42 loc) · 1.95 KB

CrowOS

Writing an operating system for x86_64 for fun on top of Limine boot protocol. Most of the ideas in this OS is from xv6.

TODO/Feature List

  • Serial port I/O
  • Userspace
    • syscalls
    • Interrupt handler
    • Cooperative scheduling
    • Round robin scheduling
    • Wait
    • Shell
    • Preemptive scheduling
    • Floating Point (SSE/80387)
  • File System
    • NVMe driver
    • CrowFS file system
    • Device Files
    • File open/closing
    • File read
    • File append
    • File creation
    • Folder creation
    • File removal
    • Rename
    • Relative paths
  • CMOS RTC
  • VGA/Framebuffer
    • BMP viewer
    • Framebuffer console
  • PS2 Keyboard Driver
  • Multiprocessor/SMP
  • DOOM

Running

At first, you need to clone this project and submodules. This means that you should execute such a command to clone this project:

git clone --recurse-submodules -j2 https://github.com/HirbodBehnam/CrowOS

Next, you only need to run make qemu to run the OS under emulation. You can use make qemu-kvm in order to run the OS with virtualization.

For debugging, use make qemu-gdb and run gdb in another window. gdb will automatically connect to qemu and stop.

Hardware Limitations

There is a big limitation on the CPU which the OS should run under and that is the support of rdtscp instruction and more specifically, IA32_TSC_AUX MSR which is not available on old CPUs. From my testing, this means that it does not support CPUs older than Sandy Bridge (such as Nehalem or Penryn). For this, I run the emulation under the SandyBridge virtual CPU in QEMU.

Other than that, Limine needs at least 128MB of RAM in order to show the boot menu. The OS itself tho should run on lower amounts of RAM.