From owner-freebsd-hackers Wed Sep 3 05:00:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA07762 for hackers-outgoing; Wed, 3 Sep 1997 05:00:07 -0700 (PDT) Received: from hda.hda.com (hda-bicnet.bicnet.net [208.220.66.37]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA07738 for ; Wed, 3 Sep 1997 05:00:02 -0700 (PDT) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id HAA26811; Wed, 3 Sep 1997 07:12:20 -0400 (EDT) From: Peter Dufault Message-Id: <199709031112.HAA26811@hda.hda.com> Subject: Re: how to access memory address 0xF1000000 In-Reply-To: <340CFA64.15FB7483@aht.com> from Randy Wenjiun Lin at "Sep 2, 97 10:49:24 pm" To: rblim@aht.com (Randy Wenjiun Lin) Date: Wed, 3 Sep 1997 07:12:20 -0400 (EDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I am doing embedded system programming on Freebsd. I need to access data > on a shared memory which start at 0xF1000000. > How to write codes to have the data on the shared memory accessed? > In other words, how to make an array start at address 0xF100000? I want > to declare an array containing all the adresses to which I can access > those data pointed. Any ideas? It isn't clear what you are doing. Shared memory between processes is handled using shared memory calls (try "man -k shared") and a board with "memory" at a fixed address is handled with an mmap entry in the driver so you can map it into your process space using mmap. Clarify your problem. Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval