OSDev.org
https://forum.osdev.org/

Just a very quick question about paging of linux
https://forum.osdev.org/viewtopic.php?f=11&t=37298
Page 1 of 1

Author:  clementttttttttt [ Wed Sep 30, 2020 8:31 am ]
Post subject:  Just a very quick question about paging of linux

Did Linux identity mapped the pages to the whole memory(paging)?

Author:  nullplan [ Wed Sep 30, 2020 8:44 am ]
Post subject:  Re: Just a very quick question about paging of linux

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.

Author:  bzt [ Wed Sep 30, 2020 10:38 am ]
Post subject:  Re: Just a very quick question about paging of linux

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

Author:  sj95126 [ Wed Sep 30, 2020 10:48 am ]
Post subject:  Re: Just a very quick question about paging of linux

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/