[haiku-commits] Re: r35156 - in haiku/trunk/src/libs/compat/freebsd_network: . compat/sys

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 19 Jan 2010 10:54:21 +0100

coling@xxxxxx wrote:
> +     area = _user_map_file("mmap area", (void*)&firmware->data, 
> B_ANY_ADDRESS,
> +             firmwareFileSize, B_READ_AREA, REGION_PRIVATE_MAP, true, 
> fileDescriptor,
> +             0);

The _user_*() functions are syscalls, they are not supposed to be called 
within the kernel.
You probably want to use vm_map_file() instead.

Bye,
   Axel.


Other related posts: