public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] printf does not work in user mode on Arm E7T
@ 2003-03-26  8:12 Pierre Habraken
  2003-03-26  8:26 ` Andrew Lunn
  0 siblings, 1 reply; 10+ messages in thread
From: Pierre Habraken @ 2003-03-26  8:12 UTC (permalink / raw)
  To: newlib; +Cc: ecos-discuss

Hello,

For demonstration purpose, I have inserted printf calls in a program
running on an Arm Evaluator 7T (controlled by gdb as a remote target).
The program is linked against newlib libc but and it uses redboot
syscalls (redboot.specs).
Some parts of the program runs in svc mode (cpsr = 0x13), other parts
run in usr mode (cpsr = 0x10), each mode using its own stack.
When printf is called with the processor being in svc mode, the
corresponding output is displayed in the gdb console and the program
continues then with its execution.
When printf is called with the processor being in usr mode, nothing is
displayed in the gdb console and the program hangs or raises a BUS
ERROR.
Could someone explain me what printf would not work in user mode ?

Thanks in advance for any help.

Pierre
-- 
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre.Habraken@imag.fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2003-04-02 12:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26  8:12 [ECOS] printf does not work in user mode on Arm E7T Pierre Habraken
2003-03-26  8:26 ` Andrew Lunn
2003-03-26 11:59   ` Thomas BINDER
2003-03-26 16:49     ` Jonathan Larmour
2003-03-26 12:56   ` Pierre Habraken
2003-03-26 16:54     ` Jonathan Larmour
2003-03-27  2:04       ` Pierre Habraken
2003-03-31 13:11         ` Pierre Habraken
2003-03-31 16:18           ` Jonathan Larmour
2003-04-02 12:40             ` Pierre Habraken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).