From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29749 invoked by alias); 26 Mar 2003 08:10:32 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 29736 invoked from network); 26 Mar 2003 08:10:31 -0000 Received: from unknown (HELO imag.imag.fr) (129.88.30.1) by sources.redhat.com with SMTP; 26 Mar 2003 08:10:31 -0000 Received: from horus.imag.fr (horus.imag.fr [129.88.38.1]) by imag.imag.fr (8.12.8/8.12.8) with ESMTP id h2Q8AUN8019617; Wed, 26 Mar 2003 09:10:30 +0100 (CET) Received: from imag.fr (conque.imag.fr [129.88.38.148]) by horus.imag.fr (8.11.6/8.11.6/Imag.pm.V2) with ESMTP id h2Q8AUN04958; Wed, 26 Mar 2003 09:10:30 +0100 (MET) Message-ID: <3E8162A7.57292D43@imag.fr> Date: Wed, 26 Mar 2003 08:12:00 -0000 From: Pierre Habraken Organization: =?iso-8859-1?Q?Universit=E9?= Joseph Fourier X-Accept-Language: en MIME-Version: 1.0 To: newlib@sources.redhat.com CC: ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: [ECOS] printf does not work in user mode on Arm E7T X-SW-Source: 2003-03/txt/msg00468.txt.bz2 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