From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32375 invoked by alias); 23 Jul 2007 16:19:46 -0000 Received: (qmail 32364 invoked by uid 22791); 23 Jul 2007 16:19:46 -0000 X-Spam-Check-By: sourceware.org Received: from ns1.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 23 Jul 2007 16:19:41 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id BA26212545; Mon, 23 Jul 2007 18:19:38 +0200 (CEST) From: Andreas Schwab To: Bill Gatliff Cc: gdb@sourceware.org, linuxppc-embedded@ozlabs.org Subject: Re: Gdbserver syscall clobber References: <469B922D.3050701@billgatliff.com> <20070716155348.GA5281@caradoc.them.org> <469E550E.5080905@billgatliff.com> <20070718183143.GA25324@caradoc.them.org> <46A4D1F5.1060005@billgatliff.com> X-Yow: "DARK SHADOWS" is on!! Hey, I think the VAMPIRE forgot his UMBRELLA!! Date: Mon, 23 Jul 2007 16:59:00 -0000 In-Reply-To: <46A4D1F5.1060005@billgatliff.com> (Bill Gatliff's message of "Mon\, 23 Jul 2007 11\:06\:13 -0500") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00162.txt.bz2 Bill Gatliff writes: > Daniel Jacobowitz wrote: >> On Wed, Jul 18, 2007 at 12:59:42PM -0500, Bill Gatliff wrote: >> >>> Now, I'm a little rusty on PPC asm (I've been doing a lot of ARM >>> lately), but it looks to me like the kernel is setting bit 0 in CR0 >>> (oris r10, r10, 0x1000) a.k.a LT, but the user side is looking at CR0 >>> (bnslr+) bit 3 a.k.a. SO. Bits are numbered from left to right, thus 0x10000000 is bit 3 of CR0 Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."