[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] [patch] r17 must be saved
Hi Yashi,
Yasushi SHOJI wrote:
> One of my colleagues pin this bug down. Currently r17 is not saved in
> irq.
>
> here is the senario:
>
> - Process A call one of syscalls, which save returning point to r17
>
> - a timer interrupt occur, save most of registers except r17
>
> - at the end of interrupt, need_resched is checked. we switch from
> process A to Process B
>
> - Process B call one of syscalls, over writing Process A's returning
> point in r17
>
> the following patch fixes this bug, but not sure how John want to fix
> it.
Fix looks good as-is - applied to CVS.
Thanks for finding it. Just curious - what was the symptom? Must have
been a devil to track down!
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/