From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 7 Nov 2001 11:31:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 7 Nov 2001 11:31:33 -0500 Received: from ns.xdr.com ([209.48.37.1]:18587 "EHLO xdr.com") by vger.kernel.org with ESMTP id ; Wed, 7 Nov 2001 11:31:10 -0500 Date: Wed, 7 Nov 2001 08:31:13 -0800 From: Dave Ashley (linux mailing list) Message-Id: <200111071631.fA7GVD921036@xdr.com> To: linux-kernel@vger.kernel.org Subject: mmap + wrapping around to 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I'm using linux on an embedded system based on the 2.4.2 kernel. There is a flash rom at physical address FFE00000 of 2 megabytes size. I have a flash utility that uses mmap() on /dev/mem, but I can't call it with offset 0xffe00000, size 0x00200000, I must call it with size 0x001ff000 (1 page size less than the real size). I figure this is because the end address has wrapped around to 0 and this messes up the system. This should work, the memory is there. But I can't access that last page. BTW the cpu is a ppc 8260 (603e core). -Dave