Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261841AbUKUXPt (ORCPT ); Sun, 21 Nov 2004 18:15:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261838AbUKUXPt (ORCPT ); Sun, 21 Nov 2004 18:15:49 -0500 Received: from x35.xmailserver.org ([69.30.125.51]:51125 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id S261847AbUKUXOn (ORCPT ); Sun, 21 Nov 2004 18:14:43 -0500 X-AuthUser: davidel@xmailserver.org Date: Sun, 21 Nov 2004 15:14:39 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@bigblue.dev.mdolabs.com To: Linus Torvalds cc: Daniel Jacobowitz , Eric Pouech , Roland McGrath , Mike Hearn , Linux Kernel Mailing List , Andrew Morton , wine-devel Subject: Re: ptrace single-stepping change breaks Wine In-Reply-To: Message-ID: References: <200411152253.iAFMr8JL030601@magilla.sf.frob.com> <419E42B3.8070901@wanadoo.fr> <419E4A76.8020909@wanadoo.fr> <419E5A88.1050701@wanadoo.fr> <20041119212327.GA8121@nevyn.them.org> <20041120214915.GA6100@tesore.ph.cox.net> X-GPG-FINGRPRINT: CFAE 5BEE FD36 F65E E640 56FE 0974 BF23 270F 474E X-GPG-PUBLIC_KEY: http://www.xmailserver.org/davidel.asc MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 630 Lines: 27 On Sun, 21 Nov 2004, Linus Torvalds wrote: > void handler(int signo) > { > extern char smc; > smc++; > } > > asm volatile("\nsmc:\n\t" > ".byte 0xb7\n\t" > ".long function" > :"=d" (fnp)); > fnp(); You know you're sick, don't you? Making traps inc's to get you in the correct opcode to move function in edx->fnp, is indeed fruit of a sick mind :=) - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/