who can tell me the meaning of RAMregion from 0x3f6d0000 ==>

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
miaowei
Member
Member
Posts: 84
Joined: Wed Dec 18, 2013 9:10 am

who can tell me the meaning of RAMregion from 0x3f6d0000 ==>

Post by miaowei »

Hi ~
I test my kernel on real machine and find an interesting thing. my kernel detected the following memory region:
...
base len usage
0x3f6d0000 0xe000 occupied
0x3f6de000 0x12000 occupied
0x3f6f0000 0x1000 occupied
....

a small memory region located at about 1G address.
i can't get useful information by google, if no one knows,ii think i should check my code.
miaowei
Member
Member
Posts: 84
Joined: Wed Dec 18, 2013 9:10 am

Re: who can tell me the meaning of RAMregion from 0x3f6d0000

Post by miaowei »

believe me, i aligned that three lines of screen message very carefully, but the space characters seems deleted by osdev when i post the thread.
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: who can tell me the meaning of RAMregion from 0x3f6d0000

Post by xenos »

Probably something related to ACPI.

(Use code-tags to keep alignment using spaces.)
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
BenLunt
Member
Member
Posts: 941
Joined: Sat Nov 22, 2014 6:33 pm
Location: USA
Contact:

Re: who can tell me the meaning of RAMregion from 0x3f6d0000

Post by BenLunt »

Use the (code)(/code) tags.

Code: Select all

base len usage
0x3f6d0000 0xe000  occupied
0x3f6de000 0x12000 occupied
0x3f6f0000 0x1000  occupied
It then uses a fixed font to display the code.

These will most likely be memory mapped devices. If you enumerate your PCI(e) bus, displaying all of the BARs associated with those devices, you will most likely have one to three devices showing these values in their BARs, (Base Address Registers).

Ben
Octocontrabass
Member
Member
Posts: 5587
Joined: Mon Mar 25, 2013 7:01 pm

Re: who can tell me the meaning of RAMregion from 0x3f6d0000

Post by Octocontrabass »

BenLunt wrote:These will most likely be memory mapped devices. If you enumerate your PCI(e) bus, displaying all of the BARs associated with those devices, you will most likely have one to three devices showing these values in their BARs, (Base Address Registers).
The ACPI specification explicitly forbids the firmware from indicating PCI devices in the memory map. It's either memory reserved for ACPI, or some other MMIO hardware.

Those addresses (around 1G) are pretty low for MMIO hardware, so it's probably RAM being used by ACPI.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: who can tell me the meaning of RAMregion from 0x3f6d0000

Post by SpyderTL »

If you call INT 0x15, EAX = 0xE820 in your boot loader, you can get a little more information about why the memory area is reserved. Most Linux distros will let you browse through these tables at boot time as well.

Or, you can just run Windows and look at the Device Manager. It will tell you what device is using what memory address.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
Post Reply