Page 1 of 1

logical address to physical address mapping

Posted: Tue May 22, 2018 1:59 pm
by MrLolthe1st
Hi! I'm want to run 2 equals programs in my OS. All is ok, but i'm ask linker for offset of data and code from 0. When i'm compiling mine program im don't know where will it be. I'm want to continue program execution after interruption and map logical address with offset 0 for use variables without any additional calculations of they addresses, what, that i needs in.
With best regards,
Aleksandr

Re: logical address to physical address mapping

Posted: Wed May 23, 2018 6:10 pm
by StudlyCaps
Hi, what you want is called paging. By configuring multiple page directories and swapping between them your programs can each have their own virtual address space which is mapped one page at a time onto physical memory. The wiki page for paging is here.