OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 12:23 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Getting amount of RAM in the computer
PostPosted: Sun Apr 30, 2017 11:52 am 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2017 12:15 pm
Posts: 149
Location: Belgium
Hello all!

Tomorrow, I will release the AQUA OS 1.2, and in it, will be widget pages. Further down the line, in future updates, I'd like to add more and more widgets. And for one of them I'd like to be able to show specs, like RAM. For now, I think that just RAM is enough.
So my question is, how can I get the amount of RAM that is in the computer?

Thanks in advance!

_________________
AQUA OS: https://obiwac.wordpress.com/aqua-os/


Top
 Profile  
 
 Post subject: Re: Getting amount of RAM in the computer
PostPosted: Sun Apr 30, 2017 11:58 am 
Offline
Member
Member
User avatar

Joined: Mon Jul 18, 2016 2:46 pm
Posts: 170
Grub gives you a memory map, count the bytes and round it up


Top
 Profile  
 
 Post subject: Re: Getting amount of RAM in the computer
PostPosted: Sun Apr 30, 2017 12:04 pm 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2017 12:15 pm
Posts: 149
Location: Belgium
That is very true, and quite embarrassing since I just implemented the code for reading the mmap from GRUB! #-o
Just had to multiply all the size values. Derp.

Thanks!

_________________
AQUA OS: https://obiwac.wordpress.com/aqua-os/


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

All times are UTC - 6 hours


Who is online

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