From owner-freebsd-questions@FreeBSD.ORG Fri May 26 08:55:19 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6834116A44E for ; Fri, 26 May 2006 08:55:19 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.web-strider.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2D5C43D48 for ; Fri, 26 May 2006 08:55:18 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id k4Q8tFx81894; Fri, 26 May 2006 01:55:15 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Sam Guyer" , Date: Fri, 26 May 2006 01:55:15 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <447634C7.8010501@deanguyer.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal Cc: Subject: RE: Port old 16-bit Win program to FreeBSD that needs access to core memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 08:55:24 -0000 Hi Sam, This isn't the best mailing list to ask this question, but here goes. You generally cannot directly access memory under UNIX, period. You have to go through a device driver. Keep in mind WIndows is a single-user system, thus a Windows program can make a lot of assumptions. One of these is that the program I/O is going to go to the screen, input will come from the keyboard, etc. UNIX is a multiuser system and a program can be run from a terminal or SSH session logged in over the network, a direct connection from the console, etc. Thus the program cannot make assumptions about where the data is going to be going to. However, the good news is that it should be pretty easy to modify a driver for your card. For example take a look here: http://www.dmst.aueb.gr/dds/sw/ifurnace/ There's driver source up there and it sounds like that card is similar to yours. Ted >-----Original Message----- >From: owner-freebsd-questions@freebsd.org >[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Sam Guyer >Sent: Thursday, May 25, 2006 3:51 PM >To: freebsd-questions@freebsd.org >Subject: Port old 16-bit Win program to FreeBSD that needs >access to core memory > > >I have an old 16-bit C++ program written for Win 3.1 that I would like >to be able to run on FreeBSD. Before I try to port the application, I >wanted to know if it would be possible at all. The program needs to >directly access the memory range D0000-DFFFF, and as I am new >to FreeBSD >I don't know if this is allowed by the kernel or if the range is >available. The program is for a motor control board (ISA, not PCI) and >is designed to communicate with the card by writing directly to the core >memory region D0000-DFFFF. It would be best described as an old ISA >video card for Windows 3.1/MS-DOS where there is no real driver. The >only operation the >operating system need to perform separate of the program is to assign >the memory region to the ISA card. Is this possible? Thanks! > >-Sam Guyer >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006 >