From owner-freebsd-questions@FreeBSD.ORG Thu Nov 6 14:32:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6183E106568C for ; Thu, 6 Nov 2008 14:32:16 +0000 (UTC) (envelope-from creddym@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id DE6678FC35 for ; Thu, 6 Nov 2008 14:32:15 +0000 (UTC) (envelope-from creddym@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so321803nfh.33 for ; Thu, 06 Nov 2008 06:32:14 -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:in-reply-to:mime-version:content-type:references; bh=4s0i0SYRW/G7uSny99L/lGUYrv6bO/UbTcPj7JEHgPE=; b=DymRZJmkSEktlIYoVWe9xRVd/JufcwRnGct03N3u6i+pLiS54khfrhTSwKdoXdzi6x fZfrQFYzCzAbXIGJleQIk9iQe73KM7DStSZw86KQ9btqtT9FENPhf+sBEXxdipPv/c9a zneqMzyRRRFM8sRidVwvWR+1dc1bXUZgIXuk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=PIMzUSXfik9d6yOa7xVfJqXaH6mbUJkifG8UzGtR6TJHWzend01Qh74/AZ9amJAPE/ ZKedymi7qQg9ZU/0V+InWUHRur1ZeseDm/dNJ0ZINzm7hzeziT/DVmut+WlkzOJyZf3L GVU6iXuwiI3eYyEdXRv1Li5QAwF+d7mpEbNng= Received: by 10.210.24.12 with SMTP id 12mr2475777ebx.31.1225980336255; Thu, 06 Nov 2008 06:05:36 -0800 (PST) Received: by 10.210.115.4 with HTTP; Thu, 6 Nov 2008 06:05:36 -0800 (PST) Message-ID: <3f95d3db0811060605i652967dbmd22d5239471ca6d5@mail.gmail.com> Date: Thu, 6 Nov 2008 19:35:36 +0530 From: "chandra reddy" To: freebsd-questions@freebsd.org In-Reply-To: <3f95d3db0811060603lfee9e56g4ddcf348e7213713@mail.gmail.com> MIME-Version: 1.0 References: <3f95d3db0811060603lfee9e56g4ddcf348e7213713@mail.gmail.com> 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-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 14:32:16 -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 "