From: "Jan Beulich" Subject: Re: NPTL/TLS segment flipping code problem Date: Wed, 12 Jan 2005 15:52:52 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Keir.Fraser@cl.cam.ac.uk Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org >Your analysis of these opcodes (A1 and A3) is correct, but both have >code 'O|4' in the insn_decode table, so they don't go thru 'case 1:'. > >A0 and A2 have code 'O|1' which are instructions: > MOV moffs8,AL ; MOV AL,moffs8 >These have a single-byte offset incoded within the instruction. >The 'case 1:' *is* needed for A0 and A2. Hmm, I'm sorry, I actually meant A0 and A2. Just look at what the assembler generates for movb symbol, %al movb %al, symbol (gas -al=movb.l -o movb.o movb.s): GAS LISTING movb.s page 1 1 0000 A0000000 movb symbol, %al 1 00 2 0005 A2000000 movb %al, symbol 2 00 Jan ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt