logical address to physical address mapping

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
MrLolthe1st
Member
Member
Posts: 90
Joined: Sat Sep 24, 2016 12:06 am

logical address to physical address mapping

Post 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
StudlyCaps
Member
Member
Posts: 232
Joined: Mon Jul 25, 2016 6:54 pm
Location: Adelaide, Australia

Re: logical address to physical address mapping

Post 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.
Post Reply