From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 23 19:31:29 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6172616A4CE for ; Thu, 23 Dec 2004 19:31:29 +0000 (GMT) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F9A643D58 for ; Thu, 23 Dec 2004 19:31:29 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id E6F95F1C63 for ; Thu, 23 Dec 2004 11:31:28 -0800 (PST) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00749-02 for ; Thu, 23 Dec 2004 11:31:23 -0800 (PST) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 8B8A6F1C5F for ; Thu, 23 Dec 2004 11:31:23 -0800 (PST) From: Sean McNeil To: amd64@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-mSKrG9YxHr1qj7qSXapG" Date: Thu, 23 Dec 2004 11:31:23 -0800 Message-Id: <1103830283.53421.3.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at mcneil.com Subject: what is the proper asm spec for xchg X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 19:31:29 -0000 --=-mSKrG9YxHr1qj7qSXapG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm looking at why audio/sdl_mixer will not compile and I see that devel/sdl12 has an include with #elif defined(__GNUC__) && defined(__x86_64__) static __inline__ Uint16 SDL_Swap16(Uint16 x) { __asm__("xchgb %b0,%h0" : "=3Dq" (x) : "0" (x)); return x; } This appears to be incorrect as it is giving errors when compiled. Does anyone more conversant with asm directives for amd64 have an idea what this should be? Thanks, Sean --=-mSKrG9YxHr1qj7qSXapG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBByx0LyQsGN30uGE4RAlB9AJ9ioAMpi7hPFrSt2LiNp5f+XCXD1wCgxVED QSimioBcab3D1zJvh7XlOww= =p3sd -----END PGP SIGNATURE----- --=-mSKrG9YxHr1qj7qSXapG--