[PATCH v4] Add mmap

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 18 08:36:54 UTC 2019



On 18/07/2019 10:34, Vijay Kumar Banerjee wrote:
>     Does the MAP_SHARED not end up here somehow?
> 
> The MAP* flags are checked by the RTEMS mmap before calling the mmap
> handler, so it doesn't end up here. The map parameters are used to check
> erros and set the other attributes accordingly. The mmap handler is called
> with only the mapping->addr parameter and the mapping->flags is not passed.

Ok.

> 
> Just to make sure I understood properly, should the asserts be like :
> ```
> assert(paddr != NULL);
> assert(memattr == VM_MEMATTR_DEFAULT);
> assert(nprot == PROT_READ | PROT_WRITE);

assert(nprot == (PROT_READ | PROT_WRITE))

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list