[haiku-bugs] Re: [Haiku] #5193: [PATCH] openfirmware: Skip mappings to non-physical memory

  • From: "andreasf" <trac@xxxxxxxxxxxx>
  • Date: Sat, 12 Jun 2010 19:33:37 -0000

#5193: [PATCH] openfirmware: Skip mappings to non-physical memory
---------------------------------+------------------------------------------
  Reporter:  andreasf            |       Owner:  axeld         
      Type:  bug                 |      Status:  reopened      
  Priority:  normal              |   Milestone:  R1            
 Component:  System/Boot Loader  |     Version:  R1/Development
Resolution:                      |    Keywords:                
 Blockedby:                      |       Patch:  1             
  Platform:  PowerPC             |    Blocking:  1048, 6129    
---------------------------------+------------------------------------------

Comment(by andreasf):

 Replying to [comment:14 bonefish]:
 > Replying to [comment:13 andreasf]:
 > > As heuristic I'm using the available memory size.
 >
 > That only works, when the physical memory is contiguous. The kernel args
 contain the actual physical memory ranges.

 My heuristic was bogus in that the available memory is actually lower than
 the OpenFirmware start.[[BR]]
 Testing with a hardcoded value, it turns out that {{{create_area()}}}
 still does not work here. So we can drop that part.

 > Note that you should retrieve the actual memory type from the mapped
 ranges and pass it to vm_map_physical_memory().
 Unfortunately I fail to see how.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5193#comment:15>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: