Is Memory Mapped I/O Taking RAM Address Space for Devices?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
karim
Posts: 7
Joined: Mon Jun 23, 2025 8:03 pm

Is Memory Mapped I/O Taking RAM Address Space for Devices?

Post by karim »

Does "Memory Mapped I/O" mean, for example, if the CPU is 32-bit (so the address space is 4GB), the BIOS can allocate 3GB of addresses for RAM, and when the BIOS does enumeration, it gives each device (like the graphics card) an address range from the remaining 1GB of addresses?
So basically, the term "Memory Mapped I/O" means that you take part of the address space that could have been used for RAM, but instead you assign it to a device (like the graphics card).
This way, when a program sends an address, the CPU checks if it belongs to RAM or to the graphics card, for example. Is that correct or not?
User avatar
iansjack
Member
Member
Posts: 4811
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Is Memory Mapped I/O Taking RAM Address Space for Devices?

Post by iansjack »

I’m not convinced that a lack of ability, or willingness, to do simple research is a good basis for OS development. Or a good use of other contributors’ time.

Perhaps a book on computer architecture would help.
sounds
Member
Member
Posts: 126
Joined: Sat Feb 04, 2012 5:03 pm

Re: Is Memory Mapped I/O Taking RAM Address Space for Devices?

Post by sounds »

I am also wary of questions that sound like a CS homework assignment.
Post Reply