[haiku-commits] Re: BRANCH xyzzy-github.x86_64 - src/add-ons/kernel/busses/usb build/jam

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 06 Aug 2012 14:39:12 +0200

Jérôme Duval wrote:
> 2012/8/6 xyzzy-github.x86_64 <community@xxxxxxxxxxxx>:
> > - fQueueHead->this_phy = (addr_t)physicalAddress;
> > + fQueueHead->this_phy = (uint32)physicalAddress;
> 
> I've a question not directly related to your commit. Do you know
> whether currently memory allocated through create_area() is always
> under the 4GB limit for x86_64 by default? Or is a flag needed?

Already with x86 and PAE the physical pages allocated by create_area() can be 
beyond the 32 bit boundary. There is no flag to prevent that with 
create_area(). However, in the kernel you can use create_area_etc() [1], which 
allows you to provide a physical_address_restrictions parameter [2] giving you 
better control about the physical memory that will be allocated.

CU, Ingo

[1] http://cgit.haiku-os.org/haiku/tree/headers/private/kernel/vm/vm.h#n79
[2] http://cgit.haiku-os.org/haiku/tree/headers/private/kernel/vm/vm_types.h#n51

Other related posts: