ts-7000
[Top] [All Lists]

Re: [ts-7000] sys/io.h question

To:
Subject: Re: [ts-7000] sys/io.h question
From: Jim Jackson <>
Date: Mon, 24 Mar 2008 17:57:05 +0000 (GMT)


On Mon, 24 Mar 2008, berryma4 wrote:

>
>
> Hello!
>
> I've read a few posts mentioning that inp/outp don't exist on arm.
> But, my toolchain does have a sys/io.h that includes inp and outp
> macros.

Ok. Have you compared the macros in your toolchain's sys/io.h with,
say, /usr/include/sys/io.h on an i386 or similar based system?

In my toolchain the functions are defined to throw an exception, i.e. fail, as 
you have seen.

> I'm looking for a clarification on if these macros work, and
> if they don't why would they be included in the build.  I've tried
> using the inp and outp in my code, but I get seg faults on execution.

I think you've just answered yourself :-)

> If I could use the macros; I feel it would be much better for porting
> back and forth between different architectures, than using the
> /dev/mem option.
>
>
> Thank you!
> Eric
>
>

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU