Find the answer to your Linux question:
Results 1 to 2 of 2
hey.. I wanted to know how we can get to know the last accessible ram address. Because in x86 Arch..in some RAM , there exist some memory holes, which are ...
  1. #1
    Just Joined! chandan_raka's Avatar
    Join Date
    Jul 2009
    Location
    India
    Posts
    7

    kernel last physical memory

    hey..

    I wanted to know how we can get to know the last accessible ram address. Because in x86 Arch..in some RAM , there exist some memory holes, which are used by the BIOS, and kernel does not have the access to that.

    devmem_is_allowed() function could be used to check the valid ram access. I am still fiddling around with the codes for x86.

    The max_pfn does not points to the last physical address.
    If anybody finds it..please share it across.

  2. #2
    Just Joined! chandan_raka's Avatar
    Join Date
    Jul 2009
    Location
    India
    Posts
    7
    Hi,

    Eventually I got it myself. Just sharing so, it could help others too.

    Its the variable 'high_memory' contains the highest virtual memory. And if we convert it to physical by _pa(high_memory) we get the highest address given by BIOS in its memory map

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...