X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 10 Dec 2001 10:59:07 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Timo Inki cc: djgpp AT delorie DOT com Subject: Re: Handler call with inline asm In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 9 Dec 2001, Timo Inki wrote: > asm volatile("pushfl \n lcall %0" > : > : "g" (Oldhandler)); > > The as complains about wrong operands with lcall. > It should call Oldhandler by lcall. You should use "=g", not "g" for the output operands. If that doesn't help, please show us more details about this, in particular the exact error message printed by the compiler. The declaration of Oldhandler is also of great importance here.