> > In short:
> >
> > push %ds : legal, should default to 32-bit mode, no override
>
> Does esp really change by 4 with opcode "0x1e" or "0x661e"?
void main()
{
int res;
asm("movl %%esp, %%eax; pushl %%ds; subl %%esp, %%eax":"=a"(res));
printf("delta: %08x\n", res);
asm("movl %%esp, %%eax; pushw %%ds; subl %%esp, %%eax":"=a"(res));
printf("delta: %08x\n", res);
}
-- mingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu