On Tue, 2013-01-08 at 19:27 -0800, Jordan Justen wrote:
> Shouldn't retf in X64 pop 2 qwords?

That was my first attempt, but it didn't work. When gas sees 'retf' it
emits the single opcode 0xcb, which pops 32-bit EIP and CS (0x10) from
the stack as I've (now) constructed it.

A retfq (0x48 0xcb) with the REX prefix would pop 64-bit values for
both. But we can't have an EIP above 4GiB *anyway*, so there's not a lot
of point in changing it. If we can't persuade MASM to emit the correct
retf opcode, one more DB 0cbh in that file won't hurt...

Hm, some ancient finger memory came back then and added a zero in front
of that number in the previous sentence. That's necessary for hex
numbers starting with a letter, isn't it? That'll be one more problem in
my current .asm attempt...? 

I have ml.exe running under Wine but don't have ml64.exe to attempt
doing the same...

-- 
dwmw2

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to