Code Monkey home page Code Monkey logo

-libraryos-exokernel_implementation's Introduction

Exokernel_Implementation

I love OS. I implement it.

According to the design principles from MIT's Exokernel, one of library OSes, I implemented this OS from scratch.

I devised essential OS modules such as booting, Memory management, User-level environments, Preemptive multitasking and a sehll.

-libraryos-exokernel_implementation's People

Contributors

haogang avatar hawxchen 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

-libraryos-exokernel_implementation's Issues

about check if there is enough memory for allocation in boot_alloc()

Thanks for your blog, it helped me a lot for understanding 6.828.
I find that in pmaps.c line 128 , you initialize nAvailPages with the value of npages ( the amout of physical memory) .
In my opinion, at boot_alloc() , the memory should be allocated between KERNBASE and KERNBASE+4MB, shows in entrypgdir.c, so for checking if the kernel is out of memory or not, we shoud do the following :

uintptr_t va_end = (uintptr_t) ROUNDUP((char*) ((uintptr_t) nextfree + (uintptr_t) n), PGSIZE);
if (va_end > (uintptr_t)KERNBASE  && 
     va_end < (uintptr_t)KERNBASE + 0x400000) {
     nextfree = (char *) va_end;
}

sorry for my english.

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.