[haiku-gsoc] Re: Implementation Queries
- From: Julian Harnath <julian.harnath@xxxxxxxxxxxxxx>
- To: <haiku-gsoc@xxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2017 10:48:39 +0200
Am 28.06.2017 um 10:38 schrieb Hamish Morrison <hamishm53@xxxxxxxxx>:
The problem is that kmalloc on Linux always returns contiguous memory
(because Linux maps some range of physical memory 1:1 into kernel
virtual address space). So for a correct implementation we need to
always return contiguous memory (although this will be quite expensive
on Haiku).
Depending on how the alloc/free behaviour is in the code to be ported, a simple
provisional allocator could be added (temporarily), i.e. create a larger area
of contiguous memory and hand out pieces of it.
Regards
Julian
Other related posts: