Re: confused by code in setup.S

From: david parsons (
Date: Mon May 08 2000 - 00:19:52 EST

In article <>,
Timur Tabi <> 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
Please read the FAQ at

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