comp.lang.ada
 help / color / mirror / Atom feed
From: sk <noname@myob.com>
Subject: Re: no crash dump ?
Date: Fri, 08 Mar 2002 16:49:26 -0600
Date: 2002-03-08T16:49:26-06:00	[thread overview]
Message-ID: <mailman.1015628104.5179.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 20020308172207.2a82c68a.bjorn.lundin@swipnet.se

Hi,

If this is the complete code sample  for your "Joystick"
program, there are no calls within it  which actually do
an operation likely to cause a system level "core dump".

As "anders@localhost.localdomain (Anders Gidenstam)" 
pointed out, the line

Joystick_address : system.address := 
    system'to_address(16#0201#);

probably locates the code in your own address space and
*not* into the kernel address space.

If this is an Intel based platform, the I/O address space
is different from the memory address space, so 16#0201# 
will at best refer to a memory location and not the I/O 
port 16#0201#

If you are running your Linux installation "unhacked" and
you are not by-passing the system to talk to your hardware,
you might find it easier to use the device drivers and 
develop your application to "talk" to them (assuming that
your Linux installation process recognised your joystick
and installed a suitable driver).

I would suggest that you do an internet search for "linux 
device drivers" and you should get several articles 
explaining how to code and use device drivers. 

From there, I would suggest you visit "www.gnuada.org"
which has, or has links to, several binding packages
for Linux which might make "talking" to device drivers 
easier ... you never know, someone might have already 
built a "Joystick" package :-)

-- 
-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
 k i e k c c m
-------------------------------------



  parent reply	other threads:[~2002-03-08 22:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-07 20:56 no crash dump ? Bj�rn Lundin
2002-03-07 22:08 ` Anders Gidenstam
2002-03-08  0:37 ` sk
2002-03-08 16:22   ` Bj�rn Lundin
2002-03-08 22:13     ` Jeffrey Carter
2002-03-08 22:49     ` sk [this message]
2002-03-09 18:07       ` Bj�rn Lundin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox