Re: hex addresses in setup.S

H. Peter Anvin (hpa@zytor.com)
16 Jan 2002 12:03:16 -0800


Followup to: <BJEJJDPJOCEPDBLPFDKJCEACCCAA.ceswiedler@mindspring.com>
By author: "Chris Swiedler" <ceswiedler@mindspring.com>
In newsgroup: linux.dev.kernel
>
> Why does setup.S define the default system load address as 0x1000, and the
> comment on the line explain this to be 0x10000(and gives the decimal
> translation of 65536, so it's not a typo)? This seems to be true for several
> addresss (0x9000 = 0x90000, etc). I'm sure there's something simple I'm
> missing...what is it?
>

In real mode:

linear_address := (segment << 4) + offset

Those addresses are "segment" addresses, with (implied) offset == 0.
These kinds of addresses are sometimes referred to as "paragraph
addresses" (paragraph being bigger than words but smaller than pages,
I guess.)

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/