flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Memory that is "Hardware Reserved"?

Author
Thread Post new topic Reply to topic
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 14 Jun 2010, 22:42
I was looking at the memory tab of Window's "Resource Monitor," it listed 258mb of "Hardware Reserved" memory. What is "Hardware Reserved" memory really used for? Is Window's catering to users who it knows would never understand what it's really used for(something complex/confusing, but OS decided), or is there really memory that CANNOT EVER be used by the OS?
Post 14 Jun 2010, 22:42
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 14 Jun 2010, 23:07
Maybe video card...

Yes there are memory locations that should never be used. Some BIOS interrupts (don't remember which) can map and identify these areas.


Last edited by ManOfSteel on 14 Jun 2010, 23:11; edited 1 time in total
Post 14 Jun 2010, 23:07
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 14 Jun 2010, 23:28
Quote:

Some BIOS interrupts (don't remember which) can map and identify these areas.

int 15, eax=e820 is the most common for mapping them, but AFAIK, the info provided as to the reason of their reservation is very general.
Post 14 Jun 2010, 23:28
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 790
Location: Adelaide
sinsi 15 Jun 2010, 00:35
Lots of hardware on the PCI bus use memory-mapped IO instead of ports, the video frame buffer has to sit somewhere, even CPU's talk to each other via memory addresses. They are usually at the top of the address space.
Post 15 Jun 2010, 00:35
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20344
Location: In your JS exploiting you and your system
revolution 15 Jun 2010, 02:32
I think it is a Microsoft conspiracy. They are deliberately hiding memory from all users. They use this memory for their own purposes, to further their plans for world domination.

Either that or what sinsi said.

Actually, come to think of it, I think that sinsi's explanation is the more likely of the two.
Post 15 Jun 2010, 02:32
View user's profile Send private message Visit poster's website Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 15 Jun 2010, 03:48
revolution wrote:

I think it is a Microsoft conspiracy. They are deliberately hiding memory from all users. They use this memory for their own purposes, to further their plans for world domination.

I didn't mean it like that, Windows tends to simplify things. Sometimes to the extent that what they say is too ambiguous for interested people like myself to decipher what they're really talking about. But now that you mention it... I bet it ties into Bill Gate's plan to replace all world currency with MS points. They're everywhare, Xbox, Zune, Hotmail, they all require a Windows Live account. It's a global conspiracy!!!
Post 15 Jun 2010, 03:48
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 790
Location: Adelaide
sinsi 15 Jun 2010, 04:00
Well, it would be an Intel conspiracy then, since I'm pretty sure that Linux will be hiding memory too...omg, it just grows!!!
Post 15 Jun 2010, 04:00
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 15 Jun 2010, 04:08
sinsi wrote:

Well, it would be an Intel conspiracy then, since I'm pretty sure that Linux will be hiding memory too.

Linus is just Bill's pawn to keep him from getting sued again. I bet Linux will even report the same amount, it's all orchestrated behind the scenes to make them look competitive. I wonder: Does Windows use the e820 function?
Post 15 Jun 2010, 04:08
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 790
Location: Adelaide
sinsi 15 Jun 2010, 04:36
Anyway, if you are running windows you can look at device manager to see what sort of memory addresses are used by hardware.
Writing to those addresses could do strange things to your hardware, similar to sending bytes to random ports would.

win95 uses the e820 function iirc
Post 15 Jun 2010, 04:36
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 15 Jun 2010, 05:01
Now that you mention the Device Manager, how many of the IO ranges and such can be used by me(as in used in my OS)? Are most of them custom configured by Windows/Drivers to the ports/irqs listed or are most of them at their default ranges?

Interesting: High Definition Audio Controller - (C000000h - C0003FFFh) What would this memory be used for, code, data, IO?
Post 15 Jun 2010, 05:01
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 15 Jun 2010, 05:17
Tyler wrote:
I wonder: Does Windows use the e820 function?

http://board.flatassembler.net/topic.php?p=43144#43144
Post 15 Jun 2010, 05:17
View user's profile Send private message Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 618
cod3b453 15 Jun 2010, 08:14
Hardware reserved memory is several regions taken by specific devices/mechanisms present on the system. This includes things like ACPI, APIC, VGA/VESA LFB, PCI, BIOS ROM and then devices like graphics/sounds cards. Some of this memory is used by the OS for MMIO interaction with the hardware, other may be reserved by the hardware for its own use (as defined by their own specs) or simply be a buffer that is used by the OS and hardware.

Detection is a little more complicated since E820 only seems to map physical memory, ACPI and ROM areas; other devices have predefined locations or can be looked up easily using other methods. In the case of PCI I think you have to probe it to find the other devices and their ranges. I don't know about other chipset features.
Post 15 Jun 2010, 08:14
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 15 Jun 2010, 19:57
If Windows doesn't use e820, and I assume it doesn't use other BIOS memory functions, what does it use?
Post 15 Jun 2010, 19:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.