[uClinux-dev] re: 68360 interrupts (fwd)

From: Kendrick Hamilton (hamilton@SEDSystems.ca)
Date: Wed May 15 2002 - 19:19:50 EDT


I got this,
	If anybody has comments, it would probably be good. I am looking
into it .
---------- Forwarded message ----------
Date: Thu, 16 May 2002 00:16:52 +0800
From: Yang Dongbo.szmail <youngdb@szonline.net>
To: hamilton@sedsystems.ca
Subject: re: 68360 interrupts

Kendrick

I'm afraid that I had to disturb you . I'm now trying to write a asynchronous device (CD 2431) driver for my MC68360 platform, based on uClinux 2.0.38.   The external interrupts  INT2, INT3 and INT5 of  68360 were used as modem, transmit, receive interrupts. When the transmit speed raised up  to 115200bps, and transmit interrupt happened frequently ( about 10000 times per second), the vector 3 trap always happened. I tried every mean to find the bugs in my driver, but the problem was  still there. At last I had to go to the entry.S, I added the interrupt disable to the macro SAVE_ALL as following, the driver seemed to be much better, But the problem still there when transmitting and receiving  simultaneously. I'm quite depressed now, hope you can give me a helping hand. my question is :

1. Is the interrupt disable should be add to SAVE_ALL ? will it causes other system problems?
2. If not, what's you kindly advice to solve the problem of system  trap 3 ?
3. Is that the interrupt rate too high on my hardware platform? if so what's the maximum interrupt rate in your opinion?


TKS
Paul

...

 * This defines the normal kernel pt-regs layout.
*
* regs are a2-a6 and d6-d7 preserved by C code
* the kernel doesn't mess with usp unless it needs to
*/
#define SAVE_ALL \

oriw #0x700,%sr                                   \

clrl %sp@-;    /* stk_adj */ \
movel %d0,%sp@-; /* orig d0 */ \
movel %d0,%sp@-; /* d0 */ \
moveml %d1-%d5/%a0-%a1,%sp@-

/* moveml %sp@+,%a0-%a1/%d1-%d5; */

#define RESTORE_ALL \
moveml %sp@+,%d1-%d5/%a0-%a1; \
movel %sp@+,%d0; \
addql #4,%sp; /* orig d0 */ \
addl %sp@+,%sp; /* stk adj */ \
rte


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:15 EDT