[lkml]   [1998]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] APM support doesn't compile with binutils

On Wed, 25 Mar 1998, H. J. Lu wrote:

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

 \ /
  Last update: 2005-03-22 13:41    [W:0.064 / U:2.544 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site