jetcom / xinu-arm

Xinu arm port, for Raspberry Pi
Other
28 stars 32 forks source link

ISR corrupts stack #1

Closed tebrown closed 11 years ago

tebrown commented 11 years ago

On the ARM processor (pre-Cortex A3), there is no built in System Timer. We emulate one with TIMER0. The problem is that when a thread is scheduled to wake up, the context switch happens on the interrupt thread. This isn't the problem itself, but since our stack gets corrupt, the LR perpetually holds the a single value and we never traverse back up the frames.

jsb2092 commented 11 years ago

Does this happen on a raspberry pi?

tebrown commented 11 years ago

I am sure it does. It's a ARM/Xinu design issue, not a QEMU issue.

On Tue, Nov 27, 2012 at 9:30 AM, jsb2092 notifications@github.com wrote:

Does this happen on a raspberry pi?

— Reply to this email directly or view it on GitHubhttps://github.com/jsb2092/xinu-arm/issues/1#issuecomment-10759761.

caltry commented 11 years ago

Fixed as of 53e515db81d7157d732744f1051ef848633990b4?

tebrown commented 11 years ago

Probably :). I'll close it out.

On Jan 29, 2013, at 2:18 PM, David Larsen notifications@github.com wrote:

Fixed as of 53e515d?

— Reply to this email directly or view it on GitHub.