memory Archive

  • Should I use a physical or virtual memory model?

    Should I use a physical or virtual memory model?

    One of the most important considerations for your OS kernel is memory management. For all but the very simplest of environments, your kernel is going to need memory allocation and deallocation (free) facilities. This, of course, means carving off a “chunk” of memory each time...

    Full Story

  • Enabling paging vs. the GDT “wrap around” trick

    Enabling paging vs. the GDT “wrap around” trick

    When writing our standalone code for the OS nucleus or kernel, one of the first problems we have to deal with is the difference between our linked addresses (i.e. the load addresses defined by the linker) versus the actual address we are loaded at by...

    Full Story