GithubHelp home page GithubHelp logo

josehu07 / hux-kernel Goto Github PK

View Code? Open in Web Editor NEW
60.0 5.0 2.0 8.64 MB

The Hux x86 32-bit Toy Operating System Kernel (with full wiki pages)

License: MIT License

Makefile 1.32% Assembly 4.89% C 90.84% Python 2.95%
hux-kernel operating-system-kernel operating-system-learning

hux-kernel's Issues

Wiki Paging suggestion

Hi there it's me again ๐Ÿ‘‹

In https://github.com/josehu07/hux-kernel/wiki/10.-Two-Level-Paging-Setup#frame-allocation-bitmap it feels like instead of

We create an array of uint32_t's, where each integer element is essentially an array of 32 bits.

you meant

We create an array of uint8_t's, where each integer element is essentially an array of 8 bits.

as this is how struct bitmap is defined.

By the way, is it ok to provide suggestions here? Can I ping you on IRC by any chance?

Memory question

Hi there, thank you so much as I'm learning a lot from your project! I am currently tackling paging.

I have a question about this line

if (kheap_curr + size > KMEM_MAX)

Something I'm not sure to understand is: while kheap_curr is initialized to a page-aligned memory address right after the kernel, which itself is loaded to 1MiB, we compare kheap_curr to something that looks like a quantity:

#define KMEM_MAX 0x00800000     /** 8MiB reserved for the kernel. */

In practice, KMEM_MAX is used as an address, and the comment should read something like: /* Max address reserved for the kernel */.

What am I missing?

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.