From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Hourihane Subject: Re: Atari TT (next) Date: Mon, 09 Jan 2012 11:22:49 +0000 Message-ID: <4F0ACE09.7030406@fairlite.co.uk> References: <4F079F6B.8080502@fairlite.co.uk> <4F07EA66.6020603@gmail.com> <4F08E748.4020305@fairlite.co.uk> <4F0917E9.9090600@gmail.com> <4F0964EC.2080505@fairlite.co.uk> <4F0A2DD0.4000707@fairlite.co.uk> <4F0A3CDE.7070308@fairlite.co.uk> <4F0A421C.9000600@fairlite.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from fairlite.demon.co.uk ([80.176.228.186]:59535 "EHLO fairlite.demon.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752834Ab2AILWx (ORCPT ); Mon, 9 Jan 2012 06:22:53 -0500 In-Reply-To: Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Andreas Schwab Cc: Michael Schmitz , Linux/m68k , Geert Uytterhoeven On 09/01/12 10:40, Andreas Schwab wrote: > Alan Hourihane writes: > >> *** FORMAT ERROR *** FORMAT=0 >> Current process id is 768 >> BAD KERNEL TRAP: 00000000 >> Modules linked in: >> PC: [<000029de>] flush_thread+0x8/0xe > void flush_thread(void) > { > unsigned long zero = 0; > > current->thread.fs = __USER_DS; > if (!FPU_IS_EMU) > asm volatile (".chip 68k/68881\n\t" > "frestore %0@\n\t" > ".chip 68k" : : "a" (&zero)); > } > > GCC is optimizing away the initialisation of zero, since nothing visible > is using its value. Great spot! Seems this also needs massaging into process_no.c too. But am I at a shell prompt :-) Alan.