Coder Social home page Coder Social logo

cpl-1 / cpl-1 Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 1.0 12.87 MB

Operating system in C written for fun and glory

License: GNU General Public License v3.0

Makefile 2.77% C 94.05% Assembly 1.20% Python 1.98%
kernel operating-system operating-systems i386 i686

cpl-1's Introduction

CPL-1 Operating System

Process Test image

CPL-1 kernel init log on i686 CPUs

What is CPL-1

CPL-1 Operating System is a hobby operating system project with the goal of creating lightweight and portable operating system that can build itself. It is called like that as the kernel for i686 target runs in ring 1 to avoid variable length interrupt frames (previously CPL-1 was only for i686 processors, so that was quite influential).

What targets are supported by CPL-1

Currently there is only support for i686 CPUS with PIC 8259 interrupt controller and PCI configuration space access mechianism v1.0

Features

  • Process Subsystem
  • Virtual File System
  • NVMe controllers driver
  • FAT32 readonly filesystem support
  • Basic userspace support
  • PS/2 keyboard driver
  • VBE framebuffer driver
  • Custom C standard library (very WIP)
  • Basic shell and utilities

What I need to build CPL-1?

To build CPL-1 kernel for i686 target, you need to build GCC cross-compiler for i686-elf target (don't forget to add to PATH) and install NASM. Additionally, util-linux and mtools are needed to create FAT32 partition.

How I build CPL-1?

Step 1. Configure the system. To generate the default config, run

python3 build-manager.py configure

Step 2. Build system

python3 build-manager.py build

Step 3. Run system

python3 build-manager.py run

Step 4. Clean up

python3 build-manager.py clean

Contributing

While the code is a bit messy in places, PRs are more than welcome! A few things to note:

  • Format your code with clang-format using .clang-format config in the repo. If you are using vscode, you can just install vscode extensions
  • When comitting, use the following format for commit names: subsystem: Description.
  • Join discord if you have any questions with regards to how to contribute etc

Licensing

CPL-1 was relicensed to GPLv3.

cpl-1's People

Contributors

notyuriy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dalalsunil1986

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.