At 09:24 PM 8/8/00 -0600, you wrote:
>On Tue, Aug 08, 2000 at 04:14:30PM -0400, Adam Meyerowitz wrote:
> > Hello,
> >
> > I know this is not directly related to RTL/RTAI but I just ran across this
> > and this seems
> > to be the best place to ask.  I have a user space app that runs with
> > iopl(3) and that needs
> > to use cli() and sti() once in the app.  I have included asm/system.h 
> where
>
>I really dislike this feature of Linux: it is unsafe, nonportable, and
>I've never seen a necessary use.

When doing some initial prototyping and just plain fooling around with some new
hardware it is very easy just to use it.  I would never use it with 
production level
code, it will moved into a kernel module.


> > these seem
> > to be defined by I'm getting undefined references to __cli(void) and
> > __sti(void).  What
> > do I have to link with to grab these functions?  Do I have to compile with
> > -O to get these?
>
>Try defining __KERNEL__ if you must.

Thanks, I will see if that works.

Adam



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to