https://github.com/brightprogrammer/misraos
A Modern Operating System Written in C++ From Scratch!
https://github.com/brightprogrammer/misraos
cmake cpp kernel modern operating-system osdev
Last synced: 5 months ago
JSON representation
A Modern Operating System Written in C++ From Scratch!
- Host: GitHub
- URL: https://github.com/brightprogrammer/misraos
- Owner: brightprogrammer
- License: bsd-3-clause
- Created: 2022-01-09T06:21:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-30T14:35:59.000Z (almost 4 years ago)
- Last Synced: 2025-04-29T20:39:50.177Z (8 months ago)
- Topics: cmake, cpp, kernel, modern, operating-system, osdev
- Language: C++
- Homepage:
- Size: 347 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## Features
- [x] Long Mode (64-bit) OS
- [x] Higher Half Kernel
- [x] Stack Based - Page Frame Allocator (PMM) with O(1) time complexity
- [x] Virtual Memory Manager (VMM)
- [x] Global Descriptor Table (GDT)
- [x] Formatted Printing Support (`Printf(...)`)
- [x] Fonts are rendered to a Framebuffer
- [x] Interrupt Descriptor Table (25/01/22 1:28 AM Indian Standard Time)
- [x] Keyboard Input (28/01/22 10:40 PM Indian Standard Time)
- [ ] Heap
- [ ] Threading
- [ ] File System
More coming soon...
Here is the current # of lines of code. I hope this keeps on increasing :-D
| Language | Files | Blank | Comment | Code |
|:-------------|-------|-------|---------|------|
| C++ | 20 | 448 | 884 | 1474 |
| C/C++ Header | 23 | 440 | 789 | 832 |
| CMake | 1 | 8 | 10 | 20 |
| SUM | 44 | 894 | 1683 | 2326 |
## Build Instructions
To install build this kernel for the first time, take the following steps :
- Clone the repo
- Run `git submodule update --init` (or clone recursively in first step itself)
- Uncomment the line `make -C limine` from `build.sh``
- run `build.sh`
- Comment out the `make -C limine` line again (keep this commented for future)
## Run MisraOS
To run MisraOS, you run the `misra.hdd` file present in the project root directory. This is built when you run the build script. Run it using
`qemu-system_x86-64 misra.hdd -m 256`. This will run it with 256 MB of memory.
## License
BSD 3-Clause License
Copyright (c) 2022, Siddharth Mishra
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Attribution
If you use code from this repo, I'd love to see the author of code attributed
somewhere where you are using it (the code) 🙃 😍 😌 😙