Re: confused by code in setup.S

From: david parsons (orc@pell.portland.or.us)
Date: Mon May 08 2000 - 00:19:52 EST


In article <linux.kernel.20000504231140Z156431-29618+818@vger.rutgers.edu>,
Timur Tabi <ttabi@interactivesi.com> wrote:
>This is my first post to this list, so please be gentle. :-)
>
>I'm studying the memory-sizing code (aka E820) in setup.S of 2.3.99-pre6,
>because I think I may need to modify it for our purposes. I found something odd
>on line 306:
>
>movw %di, %ax
>addw $20,%ax
>movw %ax,%di
>
>I don't understand why it isn't just:
>
>addw $20,%di

    Because when I wrote the code, the assembler I was using got confused
    by add di,#20; after the code went in, well, it works, so....

                  ____
    david parsons \bi/ But it will be fixed with the next version of the
                   \/ patch.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:10 EST