Skip to contentSkip to conversation

NPTL/TLS segment flipping code problem

DISCUSSION Keir Fraser 1 participant 1 message Jan 12, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines
Quoted 8 lines

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.

Quoted 5 lines

Hmm, I'm sorry, I actually meant A0 and A2. Just look at what the assembler generates for

movb symbol, %al
movb %al, symbol

Oops. Sorry - yes, you win. :-)

I'll get rid of 'case 1'.

-- Keir

-------------------------------------------------------
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