instruction_length(): Extended for 0xF0 (lock prefix).
authorshort <>
Sat, 29 Nov 2003 09:49:33 +0000 (09:49 +0000)
committershort <>
Sat, 29 Nov 2003 09:49:33 +0000 (09:49 +0000)
 - Needed for support of SMP 'ntkrnlmp.exe'/'ntkrpamp.exe'.

src/libcaptive/ldr/loader.c

index a030a1f..48fe811 100644 (file)
@@ -431,6 +431,8 @@ static gsize instruction_length(const guint8 *instr)
                        return 1+2;
                case 0xCC:      /* int $0x3 */
                        return 1;
+               case 0xF0:      /* lock prefix */
+                       return 1+instruction_length(instr+1);
                case 0xFA:      /* cli */
                        return 1;
                case 0xFB:      /* sti */