From owner-freebsd-i386@FreeBSD.ORG Thu Nov 6 14:33:04 2008 Return-Path: Delivered-To: freebsd-i386@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2D44106567E for ; Thu, 6 Nov 2008 14:33:04 +0000 (UTC) (envelope-from creddym@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 1D87F8FC13 for ; Thu, 6 Nov 2008 14:33:03 +0000 (UTC) (envelope-from creddym@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so322086nfh.33 for ; Thu, 06 Nov 2008 06:33:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=2joJCGWIbbVJm3ZG9W7c0gHXwcgNahBIxeD7SYXBv4M=; b=tEZYn3HnKeG2pRaEyiKxvU9+v4Au9iQu/TlwvcFVYGg6VEo8tM21O/W4X5RtQgl5yC bvRVfoL+fUaNh9QKpseVKfZyRhzErmt9YMkwkjEMpOKaVQtbOKvoOQU2glDFdgCI/9Kg 74um2RPlNaDxxg74qVoAVXcmpW6d3AYdvnQ7A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=kc1d7OcZUTWeq8/jJVYuqm7jhMZrEQ9COCRunsnARYtQjxGayx3djchItQT/+L4+Me muu6zRn6HWVVFiEWa7kVkSN0OIrlinpBfKVnzL5nqNsWL86CDgsoAxxqiAWqId6nK2CU 96hi1WFI8KpSCrfD1h1FzmY1RLTPUZCq+eYzs= Received: by 10.210.86.10 with SMTP id j10mr2437673ebb.129.1225980233849; Thu, 06 Nov 2008 06:03:53 -0800 (PST) Received: by 10.210.115.4 with HTTP; Thu, 6 Nov 2008 06:03:53 -0800 (PST) Message-ID: <3f95d3db0811060603lfee9e56g4ddcf348e7213713@mail.gmail.com> Date: Thu, 6 Nov 2008 19:33:53 +0530 From: "chandra reddy" To: freebsd-i386@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Assmbler Error: suffix or operands invalid for `mov' X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 14:33:04 -0000 Hi, I am building FreeBSD kernel with gcc 4.1.1. I can see the foloowing assembler error: My assemler version is GNU assembler 2.17 ../../../../../src/bsd/sys/i386/i386/locore.s: Assembler messages: ../../../../../src/bsd/sys/i386/i386/locore.s:362: Error: suffix or operands invalid for `mov' ../../../../../src/bsd/sys/i386/i386/locore.s:379: Error: suffix or operands invalid for `mov' ../../../../../src/bsd/sys/i386/i386/locore.s:397: Error: suffix or operands invalid for `mov' *** Error code 1 (continuing) The code in lcore.s is : movl UC_GS(%eax),%gs /* restore %gs */ movl UC4_GS(%eax),%gs /* restore %gs */ movl SC_GS(%eax),%gs /* restore %gs */ What is the patch for this problem? what should I use mov/movw? The same errors for bsd/sys/i386/i386/swtch.s movl %gs,PCB_GS(%edx) movl PCB_GS(%edx),%gs movl %gs,PCB_GS(%ecx) bsd/sys/i386/include/cpufunc.h __asm __volatile("movl %%gs,%0" : "=rm" (sel)); __asm __volatile("mov %0,%%fs" : : "rm" (sel)); __asm __volatile("movl %0,%%gs" : : "rm" (sel)); Thanks Chandra -- "debugging a buggy debugger with a cross buggy debugger leads to a buggy life "