Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261377AbVETOoG (ORCPT ); Fri, 20 May 2005 10:44:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261398AbVETOoG (ORCPT ); Fri, 20 May 2005 10:44:06 -0400 Received: from rost.dti.supsi.ch ([193.5.152.238]:49803 "EHLO rost.dti.supsi.ch") by vger.kernel.org with ESMTP id S261377AbVETOoD (ORCPT ); Fri, 20 May 2005 10:44:03 -0400 Date: Fri, 20 May 2005 16:43:58 +0200 (CEST) From: Marco Rogantini X-X-Sender: rogantin@rost.dti.supsi.ch To: "Richard B. Johnson" cc: Linux kernel Subject: Re: Screen regen buffer at 0x00b8000 In-Reply-To: <20050520141434.GZ2417@lug-owl.de> Message-ID: References: <20050520141434.GZ2417@lug-owl.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 607 Lines: 17 On Fri, 2005-05-20 09:48:35 -0400, Richard B. Johnson wrote: > if((fd = open("/dev/mem", O_RDWR)) == FAIL) > ERRORS("open"); > if((sp = mmap((void *)SCREEN, len, PROT, TYPE, fd, SCREEN))==MAP_FAILED) > ERRORS("mmap"); Try to open("/dev/mem", O_RDWR | O_SYNC). Without this the mapping will be chached. -marco - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/