OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 2:51 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How do I disable PAE in grub?
PostPosted: Mon Jun 01, 2020 2:23 pm 
Offline
Member
Member
User avatar

Joined: Sun Jul 21, 2019 7:34 am
Posts: 300
Hi.
I use grub as a loader. I use it to read memory map.
I'm not going to use more than 4 GB because my core is running in protected mode. While reading memory_map, I get addresses that go beyond the 4 GB area, but in my memory management system everything is calculated for 4 GB.
I would like to make it so that if some memory area starts below 4 GB, but ends up higher, then its length is trimmed to 0xFFFFFFFF. If I disable PAE, will the memory area be truncated(length) over the line 4 GB?


Top
 Profile  
 
 Post subject: Re: How do I disable PAE in grub?
PostPosted: Mon Jun 01, 2020 3:48 pm 
Online
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
Video cards and other hardware can be be memory mapped at high addresses. So, you might have 4GB of RAM, but a hole at the 3GB->4GB address range, pushing the last 1GB of RAM to the 4GB->5GB range. See https://wiki.osdev.org/Memory_Map_(x86)

So you can either:
- ignore the memory above 4GB
- work with PAE
- switch to long mode

_________________
My OS is Perception.


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: Bing [Bot], DotBot [Bot], Google [Bot], Majestic-12 [Bot] and 205 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