Subject: mmap probs
To: None <current-users@NetBSD.ORG>
From: Andrew Wheadon <>
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
	/dev/vga is a sym-link to /dev/ttyv0 I'm using pcvt.

(--) S3: Virtual resolution set to 1328x1000
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)) */
		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);
		if (base == (pointer)-1)
		    FatalError("xf86MapVidMem: Could not mmap /dev/vga (%s)\n",
		MappedPointer = base;
		MemMapped = TRUE;

The cost of living hasn't affected it's popularity. (unknown)
current	release=doc \ "NetBSD-current mirror"
hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix