Subject: mmap probs
To: None <current-users@NetBSD.ORG>
From: Andrew Wheadon <andrew@wipux2.wifo.uni-mannheim.de>
List: current-users
Date: 02/08/1995 14:51:34
My XF86_S3 has given up mmap since recompiling the
kernel (i.e. a change within the last month.)
It's producing following error from following source:
Any hints ? (I've set XSERVER and UCONSOLE in the config.new-file)
/dev/vga is a sym-link to /dev/ttyv0 I'm using pcvt.
Error:
--------
.....
(--) S3: Virtual resolution set to 1328x1000
Hello
and (-1)
Fatal server error:
xf86MapVidMem: Could not mmap /dev/vga (Invalid argument)
--------
Source: (excerpt from bsd_video.c) (from line 191) (slight changes by me)
--------
if (!MemMapped)
{
#ifndef __NetBSD__
base = (pointer)mmap(0, MAP_SIZE, PROT_READ|PROT_WRITE,
MAP_FILE, xf86Info.screenFd, 0);
#else /* (added caddr_t and off_t due to manual (man mmap)) */
ErrorF("Hello\n");
base = (pointer)mmap((caddr_t)0, MAP_SIZE, PROT_READ|PROT_WRITE,
MAP_FILE, xf86Info.screenFd, (off_t)0);
ErrorF("and (%d)\n",(int)base);
#endif
if (base == (pointer)-1)
{
FatalError("xf86MapVidMem: Could not mmap /dev/vga (%s)\n",
strerror(errno));
}
ErrorF("Goodbye\n");
MappedPointer = base;
MemMapped = TRUE;
}
--------
--
The cost of living hasn't affected it's popularity. (unknown)
current release=doc host=wipux2.wifo.uni-mannheim.de \ "NetBSD-current mirror"
hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix