From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,477d2c7239b77805 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-07 14:09:21 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed01.nntp.se.dataphone.net!nntp.se.dataphone.net!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!legolas!nobody From: anders@localhost.localdomain (Anders Gidenstam) Newsgroups: comp.lang.ada Subject: Re: no crash dump ? Date: Thu, 7 Mar 2002 23:08:54 +0100 Organization: Chalmers University of Technology Message-ID: References: <20020307215639.37cf3f6d.bjorn.lundin@swipnet.se> Reply-To: anders.gidenstam@telia.com (Anders Gidenstam) NNTP-Posting-Host: hotlips.cs.chalmers.se Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: nyheter.chalmers.se 1015538953 25515 129.16.225.36 (7 Mar 2002 22:09:13 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 7 Mar 2002 22:09:13 GMT X-Newsreader: knews 1.0b.1 Xref: archiver1.google.com comp.lang.ada:20917 Date: 2002-03-07T22:09:13+00:00 List-Id: In article <20020307215639.37cf3f6d.bjorn.lundin@swipnet.se>, Bj�rn Lundin writes: > Hi! > I'm trying to get access to the joystick port with this program > (using linux mandrake 8.1 and gnat 3.13) > I don't get access (running as root) AND I don't get a crash dump either? > Does anyone know why? Hi! Well, doesn't Linux use a page-based VM system? I'd suspect that your address clause only places your data at a certain address in the (virtual) address space of your process, ie the address has no correlation whatsoever with any "real" memory address. Besides doesn't x86 use special instructions for IO and not plain memory mapped registers? If you program is intended as user-level, then use the proper device file to access it instead. (I don't know which one that is, though.) Linux is a real OS, not some kind of DOS where you can poke at any memory address you like.. ;) /Anders -- -------------------------------------------- "A well-written program is its own heaven; a poorly-written program is its own hell." - The Tao of Programming