Gdbserver syscall clobber

Andreas Schwab schwab at
Tue Jul 24 02:19:37 EST 2007

Bill Gatliff <bgat at> 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 Schwab, SuSE Labs, schwab at
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."

More information about the Linuxppc-embedded mailing list