Subject: Re: /dev/vga and /dev/mem XFree problems with UVM
To: Chuck Cranor <chuck@dworkin.wustl.edu>
From: Matthieu Herrb <matthieu@laas.fr>
List: port-i386
Date: 02/10/1998 07:26:48
You wrote (in your message from Mon 9)
>
> the problem is that XFree86 likes to mmap /dev/mem with flags=MAP_FILE
> (and MAP_FILE is defined to be zero, and thus is meaningless). the
> single unix spec says you are supposed to specify either MAP_SHARED
> or MAP_PRIVATE, else you can return an error:
>
> [EINVAL]
> The value of flags is invalid (neither MAP_PRIVATE nor
> MAP_SHARED is set).
>
>
> so UVM enforces that unless you define COMPAT_13. the semantics
> of MAP_FILE seem to be:
>
This will be fixed in the next XFree86 version.
Matthieu