Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 18 Oct 2002 20:01:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 18 Oct 2002 20:01:43 -0400 Received: from ns.suse.de ([213.95.15.193]:23819 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id ; Fri, 18 Oct 2002 20:01:42 -0400 To: "Nakajima, Jun" Cc: Linus Torvalds , Linux Kernel Mailing List , "Mallick, Asit K" , "Saxena, Sunil" Subject: Re: [PATCH] fixes for building kernel using Intel compiler References: From: Andi Kleen Date: 19 Oct 2002 02:07:41 +0200 In-Reply-To: "Nakajima, Jun"'s message of "19 Oct 2002 01:53:00 +0200" Message-ID: X-Mailer: Gnus v5.7/Emacs 20.6 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 23 "Nakajima, Jun" writes: > -asmlinkage int sys_iopl(unsigned long unused) > +asmlinkage int sys_iopl(struct pt_regs * regs) > { > - struct pt_regs * regs = (struct pt_regs *) &unused; The change is wrong. The pt_regs are passed by value on the stack, not by reference. > > -/* Enable FXSR and company _before_ testing for FP problems. */ > - /* > - * Verify that the FXSAVE/FXRSTOR data will be 16-byte aligned. > - */ > - if (offsetof(struct task_struct, thread.i387.fxsave) & 15) { > - extern void __buggy_fxsr_alignment(void); > - __buggy_fxsr_alignment(); > - } Why does that not work? IMHO it is legal ISO-C -Andi - 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/