[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120503.144844.988487177633544388.davem@davemloft.net>
Date: Thu, 03 May 2012 14:48:44 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: hpa@...or.com
Cc: torvalds@...ux-foundation.org, viro@...iv.linux.org.uk,
npiggin@...il.com, jana@...ut.de, jlbec@...lplan.org,
linux-kernel@...r.kernel.org
Subject: Re: Oops with DCACHE_WORD_ACCESS and ocfs2, autofs4
From: "H. Peter Anvin" <hpa@...or.com>
Date: Thu, 03 May 2012 11:28:44 -0700
> + "lea" __WORDSUFFIX " %2,%1\n\t"
> + "and" __WORDSUFFIX " %4,%1\n\t"
> + "shl" __WORDSUFFIX " $3,%1\n\t"
> + "shr" __WORDSUFFIX " %b1,%0\n\t"
>
> Also, for this sequence of instructions using %ecx unconditionally is
> actually better (avoids REX prefixes on 64 bits.)
If it doesn't exist already, someone should really add bits to
binutils so you guys don't have to string paste like this.
For example a bit a mnenomics that the assembler internally changes
into the 64-bit or 32-bit variant based upon what bitness it is
targetting.
We have these on sparc, for example "ldn" is transformed into "lduw"
for 32-bit and "ldx" for 64-bit.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists