EarlGray/COSEC ↗
Created Dec 30, 2020 · View the EarlGray/COSEC repository page
the Coolest OS Ever Created
Want this for your repo?
Render a free sample of any GitHub repo in seconds.
Contributors
8
Lines of Code
3,253
From
Apr 21, 2011
To
Dec 6, 2020
About EarlGray/COSEC
COSEC is a hobby operating system project written for x86 protected mode by a single developer. The author describes it as their first effort at OS development and emphasizes that it is intentionally simple and buggy, with limited features. The project is written in C and assembly (GAS), compiled with GCC 4.5, and designed to run on i386 CPUs using the GRUB bootloader with multiboot specification.
The OS includes a basic kernel shell with debugging commands, an embedded Lua interpreter with a system module, a simplified libc with heap management, and a demonstration of preemptive multitasking with concurrent tasks. It implements a POSIX-style virtual filesystem with inodes, mountpoints, and file links, along with a simple ramfs. Early support for userspace, syscalls, and processes is included but incomplete. Notable missing features include paging, a mature userland, and various other components typical of production operating systems.
Users can test COSEC by running an ISO image in emulators like QEMU, Bochs, or v86, or installing it as a live CD on x86 virtual machines. The project maintains a wiki and Gitter chat for documentation and community contact.