From owner-freebsd-hackers Wed Dec 18 13:08:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA27720 for hackers-outgoing; Wed, 18 Dec 1996 13:08:06 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA27653; Wed, 18 Dec 1996 13:08:00 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id NAA06275; Wed, 18 Dec 1996 13:06:11 -0800 (PST) Message-Id: <199612182106.NAA06275@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: hackers@freebsd.org, multimedia@freebsd.org Subject: Re: mmap problems? In-reply-to: Your message of "Wed, 18 Dec 1996 14:01:51 MST." <199612182101.OAA10384@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Dec 1996 13:06:11 -0800 From: Amancio Hasty Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >From The Desk Of Terry Lambert : > > I have an old program "tv" which used to work okay. > > > > frame_size = 38896; > > if ((video = open("/dev/meteor0", O_RDONLY)) < 0) { > > fprintf(stderr, "open failed: %s\n", strerror(errno)); > > exit(1); > > } > > > > After running the program several times, tv exits with a a memory access > > violation. It looks like the system is not > > giving me access to the last page of the frame buffer. Any hints? > > Look at the meteor driver; the page range limitation is imposed at > that level. > > > Terry Lambert > terry@lambert.org > --- Hi, I am a little confuse . Why would "tv" work 3 or 5 times then fail to run because the driver did not mmap properly the pages?