Subject: Re: Xdaniver problem
To: None <port-atari@NetBSD.ORG>
From: Thomas Gerner <>
List: port-atari
Date: 10/07/1997 17:35:40
In article <>, (Michael Brandt) writes:
>On 06-Oct-97 Thomas Gerner wrote:
>>It should work in all TT resolutions except those whith 4 color. But then
>>another message should printed. The above message tells, that mmap fails.
>>this can happen, if the requestet memory is larger than the possible or
>>the file handle is wrong.
>How can the file handle be wrong? As far as I can see the file handle is
>obtained from opening one of the /dev/view* devices.

The error 'invalid argument' is returned by mmap if fd is wrong or if the 
memory is not paged aligned if MAP_FIXED is specified (see man mmap). The
fd should not be wrong otherwise the server would exit earlier and
MAP_FIXED is not specified at the mmap call in the server. 

Therefore it should normally not happen. :-(
The only what I can think about is that there are changes at the kernel
which cause this behavier. The server did its work once.
Maybe a rebuild of the server will fix this. I can build a new server,
but I have no TT to test it.

>>Are you shure you have enough st_pool_size configured? Use binpatch to
>>change st_pool_size.
>I don't remember the exact st_pool_size I have configured (can look it up if
>necessary), but it is enough for four views in TT-high. Thus it should be also
>enough for 4 views in TT-medium or ST-high.

This should be enough, you are right.

|   Thomas Gerner, Munich, Germany       |      2B or not 2B = FF       |
|   Email:      |                              |