Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2012 20:35:27 -0500
From:      mike andrews <mikea@mikea.ath.cx>
To:        freebsd-amd64@freebsd.org
Subject:   no such instructions: xsave, xsetbv, xrstor
Message-ID:  <20120802013527.GA87188@mikea.ath.cx>

next in thread | raw e-mail | index | archive | help
On Sat, Jul 21, 2012 at 07:55:23PM +0200, Arvydas Sidorenko wrote:
> This is the output I get when building 10-CURRENT from HEAD:
> /usr/src/sys/amd64/amd64/cpu_switch.S: Assembler messages:
> /usr/src/sys/amd64/amd64/cpu_switch.S:128: Error: no such instruction:
> `xsave (%r8)'
> /usr/src/sys/amd64/amd64/cpu_switch.S:504: Error: no such instruction:
> `xsetbv'
> /usr/src/sys/amd64/amd64/cpu_switch.S:505: Error: no such instruction:
> `xrstor (%rbx)'

Apologies for not replying into the thread, but I just subscribed and
don't have that luxury until some listmail arrives for this thread.

I'm getting the same problem doing a `make buildkernel KERNCONF=GENERIC`
on an amd64 system (Intel core i5 4-way):

: $ as --version
: GNU assembler 2.17.50 [FreeBSD] 2007-07-03
: Copyright 2007 Free Software Foundation, Inc.
: This program is free software; you may redistribute it under the terms of
: the GNU General Public License.  This program has absolutely no warranty.
: This assembler was configured for a target of `x86_64-unknown-freebsd'.
: $ gcc --version
: gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
: Copyright (C) 2007 Free Software Foundation, Inc.
: This is free software; see the source for copying conditions.  There is NO
: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
: 
: $ uname -a
: FreeBSD mikea.ath.cx 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Is the assembler somehow configured for the wrong target machine?

I did a cvsup this morning to pull me to the most recent source code
level, and still have the same problem.

Ideas? Questions? This appears a bit more pervasive than I had initially
thought, if this Joe User here (well, Joe Sysadmin) is getting caught by it. 

Thanks, and 73, de

-- 
Mike Andrews, W5EGO
mikea@mikea.ath.cx
Tired old sysadmin 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120802013527.GA87188>