LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2006, 02:17 AM   #1
topworld
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Rep: Reputation: 15
To generate Software Interrupt to ARM920T processor


Hello all,

I am trying to generate SWI - SoftWare Interrupt - to ARM920T processor.I am using linux2.6.14 and arm tool chain for compilation.

Uptil now I have tried following things to implement above-mentioned thing.

- I have one unsigned long variable "swi_no" and this variable contains swi number, which is generated dynamically. So through this swi number, I can generate swi interrupt.

I have used following asm statements to implement this thing.

1)
__asm__ __volatile("MOVS r0,%0" : :"r"(swi_no));
__asm__ __volatile("SWI r0");

I have also tried following one

2)
__asm__ __volatile("SWI %0" : :"r"(swi_no) );

BUT BOTH GIVES SAME ERROR AS

ERROR:can't rellocate swi

Here ,i think some other assemblly statement can also be possible, but i dont know wht is tht...

SO ANYBODY CAN PLEASE SUGGEST
1) SOME WAY OUT OF MY ERROR
OR
2) SOME OTHER ASSEMBLY STATEMENT TO IMPLEMENT ABOVE MENTIONED THING.

Thank you.
 
  


Reply

Tags
assembly



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Processor Jukebox software Monster-Robot Linux - Software 1 11-05-2005 06:33 AM
compile software for your processor jimznix Linux - Software 6 10-07-2005 06:13 AM
how to set an interrupt (irq) via software cardias Programming 2 09-20-2004 07:37 PM
linux software interrupt oyoyoOnLinux Programming 3 12-05-2001 06:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration