This is code for SH4 arch which also is the target platform. asmlinkage int sys_os_idle(void) { save_INTC_reg(); save_FPGA_reg(); outw(4096,INTC_IPRA); /*Keep...
K.Sateesh
K.Sateesh@...
Apr 1, 2003 9:14 am
2869
I no think, this is a right method. Some more info. Various processor and designs may provide different memory sync models with DMA operations.For Ex:...
Iqbal
iqbal@...
Apr 1, 2003 12:14 pm
2870
You can refer IA32 Architecture - Software developers manual to see how it can be done on intel pentium processors. You can find the manual here. ...
Pradeep R V
pradeep.venkatesha@...
Apr 1, 2003 1:17 pm
2871
... I haven't come across any such resource. What can be done is you can easily find out which package the library belongs to and then maybe list the contents...
Hi, In our linux device driver, we are accessing a variable decalarad volatile in the kernel headers, say X. This variable is a structure pointer which...
Omanakuttan
omanakuttan@...
Apr 3, 2003 1:31 pm
2874
hi, If u need to just access the value stored in the volatile variable X->Y, then you need not declare the local variable of volatile type. The device driver...
Ratheesh L
Ratheesh.L@...
Apr 3, 2003 2:31 pm
2875
I am doing a web application project in Linux.I am using JBoss as the EJB server and the database is mysql.hsql jdbc driver has been installed as the default...
... This has nothing to do with a device driver. volatile simply means that the variable could change asynchronously. It could be changed in another thread, in...
For example : int i ; i = i + 1 ; Normal way compiler will generate code in this way : ( assume 100 is address of - i ) mov eax, dword ptr [ 100 ] inc eax mov...
int3
kssatish@...
Apr 4, 2003 6:35 am
2878
Hi, I don't think volatile implies that. Volatile just says the compiler to make no assumptions on the vlaue of the variable. As in the example given by...
Aneesh Kumar, Can you explain, how does compiler will react in first place, when you use volatile keyword. let say we will try to understand first in x86, then...
int3
kssatish@...
Apr 4, 2003 8:44 am
2880
... volatile has nothing to do with specific hardware. So, let's take this simple case int i; i = i + 1 ... i = i + 2 Using pseudo assembly (assume r0 is a...
Optimisation has nothing to do with Volatile. Once you declare Volatile, the changes should happen immdiatly, so that multiple threads will get updated value. ...
int3
kssatish@...
Apr 4, 2003 9:20 am
2882
Dont know one line of assembly so correct me ifam wrong declaring volatile means the variable's value is ALWAYS pre-fetched from the memory directly before any...
arun
akumar@...
Apr 4, 2003 9:54 am
2883
Hi !, Pls read Page 279, Para 3, Linux Device Drivers , 2nd Edition by Rubini. Regarding Volatile and it's use/benifits . Regards Baliga Vigneshwar Baliga ... ...
Vigneshwar Baliga
vigneshwarb@...
Apr 4, 2003 9:54 am
2884
... Optimization is very much relevant with volatile because you can usually get away without the volatile specification in unoptimized code. There is no such...
... Oh well, I am going to break my promise on not continuing this thread further ;-). ... Right. ... Right. But then, volatile is not meant to protect...
... Hi, Excuse me for carrying on this thread. But the example above does not seem to indicate that optimization is related to volatile. In the above two ...
Hi ! That exapme proves, that by declaring a variable volatile, the compiler will not optimise it. As you can see it stores the variable "i" in EAX and...
Vigneshwar Baliga
vigneshwarb@...
Apr 4, 2003 10:48 am
2888
As people have explained earlier, if you declare a variable as volatile, you are requesting the Compiler *NOT to optimise out* the seemlingly redundant memory...
Ravi.Shankar
Ravi.Shankar@...
Apr 4, 2003 11:04 am
2889
... I didn't say optimization is "related" to volatile. What I said was "Optimization is very much relevant with volatile because you can usually get away...
... Sorry, Ganesan R Sir, I just though to put my views and not to argue with Aneesh. Regards, Satish K.S...
int3
kssatish@...
Apr 4, 2003 11:42 am
2891
... From: "Ganesan R" <rganesan@...> To: <linux-bangalore-programming@yahoogroups.com> Sent: Friday, April 04, 2003 3:57 PM Subject: Re: [blug-prog]...
arun
akumar@...
Apr 4, 2003 12:32 pm
2892
... In short, it can't. You will need to use other kinds of locks for that part of the code. (This has been stated by Ganesan in his previous reply). ashwin --...
(no author)
(no email address)
Apr 4, 2003 6:27 pm
2893
hi all, i have a problem inserting an image in my GTK form. It gives an error , image <file name> not found. i tried changing the relative image path to...
vinaykaw@...
Apr 4, 2003 7:05 pm
2894
I have problem for setting background in gtk+ . I will be thankful if somebody gives me piece of code for setting background in gtk+. I have tried it using...
... From: "Ashwin N" <ashwin-n@...> To: "blug-prog" <linux-bangalore-programming@yahoogroups.com> Sent: Wednesday, April 02, 2003 12:51 PM Subject: Re:...
Jaybrata Bhattacharyya
jaybratab@...
Apr 5, 2003 5:40 am
2896
Hi, I am designing a proxy server. After implementation I want to add it as a daemon in the linux kernel. What extra code + configuration do I have to do, to...
... Hi, I had faced similar problems. Try running the application from the parent directory, or from its parent dir. The error <file name> should help you ...