On Tue, 2013-01-08 at 16:35 -0800, H. Peter Anvin wrote: > A series of db statements with the real code as comments might be > easiest, especially for code this small.
Which is what the Thunk16.asm example does. Can anyone try running ml64.exe over http://david.woodhou.se/JumpToKernel.asm for me? It ought to result in something like... 0000000000000000 <JumpToKernel>: 0: 48 89 d6 mov %rdx,%rsi 3: 48 89 cb mov %rcx,%rbx 6: 48 c7 c0 10 00 00 00 mov $0x10,%rax d: 48 c1 e0 20 shl $0x20,%rax 11: 48 0d 00 00 00 00 or $0x0,%rax 17: 50 push %rax 18: cb lret 19: b8 18 00 00 00 mov $0x18,%eax 1e: 8e d8 mov %eax,%ds 20: 8e c0 mov %eax,%es 22: 8e e0 mov %eax,%fs 24: 8e e8 mov %eax,%gs 26: 8e d0 mov %eax,%ss 28: 0f 20 c0 mov %cr0,%rax 2b: 0f ba f8 1f btc $0x1f,%eax 2f: 0f 22 c0 mov %rax,%cr0 32: b9 80 00 00 c0 mov $0xc0000080,%ecx 37: 0f 32 rdmsr 39: 0f ba f8 08 btc $0x8,%eax 3d: 0f 30 wrmsr 3f: 0f 20 c0 mov %cr0,%rax 42: 0f ba f8 05 btc $0x5,%eax 46: 0f 22 c0 mov %rax,%cr0 49: ff e3 jmpq *%rbx (Yes, this is disassembling as if it were 64-bit code so some of it appears to be using 64-bit registers when in fact it'll be 32-bit registers. It's the bytes that are important; especially at 0x18. :) -- dwmw2
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