lkml.org 
[lkml]   [1998]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ERROR-2.1.120] APM compilation fails
Alan Cox wrote:

> > APM compilation fails under 2.1.120 w/ quite old binutils [I
> > know I am to blame here, but just FYI]. It complains in statements
> > like this [compiled to assembler apm_bios.c]:
>
> Actually I'm not so sure.
>
> > > movw %ebx, %es
> > > movw %ebx, %fs
> > > movw %ebx, %gs
>
> That should be
>
> movw %bx, %es
>
> %ebx is a 32bit register
>
> Alan
>

According to my intel docs, movl %ebx,%es would be preferable, as it seems
to generate shorter code and uses less clock cycles, despite the zeroing of
the
high word.

Joseph Malicki
[unhandled content-type:application/x-pkcs7-signature]
\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.059 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site