OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 9:25 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Just a very quick question about paging of linux
PostPosted: Wed Sep 30, 2020 8:31 am 
Offline
Member
Member

Joined: Tue Jul 14, 2020 4:01 am
Posts: 70
Did Linux identity mapped the pages to the whole memory(paging)?


Top
 Profile  
 
 Post subject: Re: Just a very quick question about paging of linux
PostPosted: Wed Sep 30, 2020 8:44 am 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
That terse question deserves an equally terse answer: No.

At least, if I understand your horribly phrased question right. Linux does not, in fact, identity map anything, except maybe a trampoline on boot up. That will then get mapped out.

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: Just a very quick question about paging of linux
PostPosted: Wed Sep 30, 2020 10:38 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
clementttttttttt wrote:
Did Linux identity mapped the pages to the whole memory(paging)?
Original Linux identity mapped the first 8M (all the RAM Linus had) during boot. See head.s.
Then as tasks were started, the mm replaced the identity mapping with per-task mappings.

Cheers,
bzt


Top
 Profile  
 
 Post subject: Re: Just a very quick question about paging of linux
PostPosted: Wed Sep 30, 2020 10:48 am 
Offline
Member
Member

Joined: Tue Aug 11, 2020 12:14 pm
Posts: 151
bzt wrote:
clementttttttttt wrote:
Did Linux identity mapped the pages to the whole memory(paging)?
Original Linux identity mapped the first 8M (all the RAM Linus had) during boot. See head.s.

And by the way, this technique wasn't just used in the very early versions (the link goes to the original release 0.0.1). 2.x kernels continued to do this in the kernel bootstrap code.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 37 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