All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] PPC: problem with syscalls
@ 2002-11-28 12:39 Pierre AUBERT
  2002-11-29 12:04 ` Pierre AUBERT
  2002-12-06 21:59 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre AUBERT @ 2002-11-28 12:39 UTC (permalink / raw)
  To: u-boot

Hello everybody,

I've a problem with examples/timer.c. I've tried to launch it on my
mpc860t board, if I start the timer and if I
press a key after one or more interrupts occured, the u-boot crashes.
The problem is that an interrupt handler
uses a system call (mon_printf) while the main loop is inside a system
call (mon_getc). During a system call,
the LR and SRRx are saved at a fixed location (0xcf4, 0xcf8 and 0xcfc)
then the return address of the mon_printf
in the main loop is overridden by the return address of the mon_getc in
the interrupt handler. To avoid this problem,
I think that we need to use a stack to store the return addresses (and
the SRRx) of the system calls.

What's your opinion ?

Best regards

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-06 22:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-28 12:39 [U-Boot-Users] PPC: problem with syscalls Pierre AUBERT
2002-11-29 12:04 ` Pierre AUBERT
2002-12-06 22:06   ` Wolfgang Denk
2002-12-06 21:59 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.