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 mm
Hi,
On Thu, Jul 18, 2019 at 10:39 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:
> On 17/07/2019 22:28, Vijay Kumar Banerjee wrote:
> > +static int
> > +testmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
> > + int nprot, vm_memattr_t *memattr)
> > +{
> > +
On 17/07/2019 22:28, Vijay Kumar Banerjee wrote:
+static int
+testmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
+ int nprot, vm_memattr_t *memattr)
+{
+ test_state *state = dev->si_drv1;
+
+ assert(memattr == VM_MEMATTR_DEFAULT);
+ assert(paddr != NULL);