Coder Social home page Coder Social logo

xywanz / kevos Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 6.78 MB

A strange x64 kernel from scratch

Home Page: https://github.com/stormycatcat/kevos

License: Apache License 2.0

C 12.46% C++ 77.28% Shell 1.48% Python 0.20% Assembly 1.25% Makefile 6.98% CMake 0.34%
c cpp cpp17 cpp20 independency kernel lib operating-system os x64 x86-64

kevos's People

Contributors

xywanz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dalalsunil1986

kevos's Issues

The important bug fixes! #1

With the help of bochs debugger, I find out the bug causing stranger memory error. If not setting 64-bit mode segment descriptor in protected mode, the machine would still explain the code int 32 bit mode, and then instructions such as "callq" is invalid and would cause unknown error. The second is "ljmp" only work in 32 bit mode. We just need to use it one time in the course of jumping from protected mode to long mode!

Working with c++17 or higher

Kevos will be built on c++17 or higher, so building a c++17 standard template library is necessary for us. Now stl is just finished quiet a little in src/user/lib/stl/include. It's a hard and challenging work, and through doing it, we could know the stl lib deeply. With the help of stl, our kernel could be written in a modern c++ programming way, which would look like so cool! ๐Ÿ˜„

build.sh may not work

  1. You need some dependencies such as kpartx.
  2. I build the kernel through linux vm in vagrant, but I write the code in windows, so I need to use the shared folder. However, directly mounting the img in shared folder to /mnt/ would cause some error, so I copy the project folder to ~/ to build it. If you want to use build.sh to build kevos, you must modify paths in the shell to fit your system first.

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.