From: cfchiesa@cyber1.servtech.com (christopher f. chiesa)
Subject: Re: GALAXIES - I've seen it
Date: 1998/03/25 [thread overview]
Message-ID: <6fb3r2$k8j@cyber1.servtech.com> (raw)
In-Reply-To: 6f5u6m$lne@post.gsfc.nasa.gov
In article <6f5u6m$lne@post.gsfc.nasa.gov>,
Bob Koehler <koehler@bessta.gsfc.nasa.aspm.gov> wrote:
>
>According to the architecture reference, one must choose big-endian or
>little-endian from console mode before booting the OS on an Alpha.
Interesting! So... what, exactly, does this choice do to the Alpha CPU at
the hardware level? The only thing I can think of which distinguishes
big-endian from little-endian behavior "at the hardware level," is the
specific sequence of behind-the-scenes, internal shifting-and-masking the
CPU must perform in order to implement such things as "load a <less-than-
register-sized quantity> from a non-<register-size>-aligned memory
address." Ergo the "choice" made at the console must somehow instruct the
Alpha CPU to select a DIFFERENT set of implicit shift-and-mask operations
in its operation.
>You could
>run both big-endian and little-endian OS on the same machine at different
>times.
The implications here are interesting. Presumably the console-ROM code is
designed to run with a particular endianness. But that same ROM must at
some point "hand off" execution to an OS which, at least some of the time,
wants to run with a DIFFERENT endianness. The inescapable conclusion is
that at the crucial moment the CPU _must_ "hot-swap" endiannesses in mid-
(instruction)-stream.
>But that's a bit more than in "the compilers". The compiler needs
>to match the target mode, but you can't "hot-swap" to a different mode while
>the CPU is running. More importantly, you'ld have some difficulty coordinating
>access to the I/O subsystem and such between two CPU's running different OS in
>different modes. Not that it couldn't be done.
The difficulty in hot-swapping, IMHO, isn't that the CPU "can't" do it,
nor even that compilers could not be built to support it. It's simply
that AT THE PRESENT TIME, the systems in which these CPUs are installed,
and the compilers which run on these systems, are not designed to support
it. It ought not take much ingenuity (compared to what Digital hardware
engineers have exhibited for, lo, these many years) to redesign a few
things here and there so that hot-swapping WERE supported.
Perhaps a future generation of Alpha CPU could be modified to make such
support easier. Either the distinction between modes could be done away
with altogether, so that all the formerly-implicit shifting-and-masking I
previously spoke of, disappeared from the hardware and had to be
implemented explicitly in software (generated behind-the-scenes by
compilers). That would work, but would be a giant step backward with
respect to the original design goals of the entire Alpha/RISC philosophy.
Better might be to ADD a mode to Alpha: a "don't-care-endian" mode in
which the CPU would TEMPORARILY not perform those implicit shifting-and-
masking operations. The handoff between console-ROM and an OS, or from
one OS to another, of differing endianness could then be accomplished in
two "relatively painless" or "smaller" steps, rather than in one, abrupt,
possibly-disruptive one: go from e.g. little-endianness, to don't-care-
endianness, and then from don't-care endianness to big-endianness. Such
things as "servicing an interrupt of ONE endianness, while running code
in the OTHER," might similarly be simplified by coding at least the
rudiments of the interrupt-handling mechanism in "don't-care
endianness" mode.
It's completely possible that this theory of mine is riddled with
inconsistencies or infeasibilities. If I could state for certain that
it were not, _I_ would be one of Digital's ivory-tower hardware types.
I'm not, and so I leave it for greater minds than my own to sift
through the details and assess the true technical issues.
Chris Chiesa
cfchiesa@servtech.com
next prev parent reply other threads:[~1998-03-25 5:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3.0.3.32.19980320182347.0054d100@mail.progis.de>
1998-03-20 5:00 ` GALAXIES - I've seen it Terry Shannon
[not found] ` <1998Mar20.163007.1@sldb4.slac.stanford.edu>
1998-03-21 5:00 ` Terry Shannon
1998-03-21 5:00 ` Larry Kilgallen
1998-03-21 5:00 ` Terry Shannon
1998-03-23 5:00 ` Richard D. Piccard
1998-03-23 5:00 ` Bob Koehler
1998-03-25 5:00 ` christopher f. chiesa [this message]
1998-03-25 5:00 ` Larry Kilgallen
1998-03-26 5:00 ` Bob Koehler
1998-03-28 5:00 ` Laurence Blunt
1998-03-28 5:00 ` Paul DeMone
1998-03-22 5:00 ` fairfield
1998-03-23 5:00 ` xxx
1998-03-23 5:00 ` Terry Shannon
1998-03-23 5:00 ` mathog
1998-03-23 5:00 ` Malcolm Dunnett
1998-03-23 5:00 ` Randy Thomson
1998-03-23 5:00 ` Terry Shannon
1998-03-24 5:00 ` Paul Nankervis
1998-03-24 5:00 ` Robin Garner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox