OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 6:36 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: logical address to physical address mapping
PostPosted: Tue May 22, 2018 1:59 pm 
Offline
Member
Member

Joined: Sat Sep 24, 2016 12:06 am
Posts: 90
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


Top
 Profile  
 
 Post subject: Re: logical address to physical address mapping
PostPosted: Wed May 23, 2018 6:10 pm 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 144 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group