public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>,
	Tigran Aivazian <tigran@veritas.com>,
	"H. Peter Anvin" <hpa@transmeta.com>,
	Max Inux <maxinux@bigfoot.com>, "H. Peter Anvin" <hpa@zytor.com>,
	linux-kernel@vger.kernel.org
Subject: Re: bzImage ~ 900K with i386 test11-pre2
Date: Sun, 12 Nov 2000 23:30:43 +0100	[thread overview]
Message-ID: <20001112233043.C11857@athlon.random> (raw)
In-Reply-To: <Pine.LNX.4.21.0011111644110.1036-100000@saturn.homenet> <m1ofzmcne5.fsf@frodo.biederman.org> <20001112122910.A2366@athlon.random> <m1k8a9badf.fsf@frodo.biederman.org> <20001112163705.A4933@athlon.random> <m1bsvlauic.fsf@frodo.biederman.org>
In-Reply-To: <m1bsvlauic.fsf@frodo.biederman.org>; from ebiederm@xmission.com on Sun, Nov 12, 2000 at 11:57:15AM -0700

On Sun, Nov 12, 2000 at 11:57:15AM -0700, Eric W. Biederman wrote:
> Nope you rely on cs & ds as well.  cs is just a duh the codes running
> so it must be valid.  But ds is needed for lgdt.

Right. The ds just needs to be valid as cs and ss needs to be valid
as well (for obvious reasons I didn't even mentioned cs needs to be valid).
i386 instead has the dependency to have the selectors in desc.h to be the same
as used by the decompression code, we only need valid ones instead. I think
relying on the decompression code to provide sane segment selectors isn't as
ugly as being dependent on its own private gdt layout.

If I don't want to rely on the ds to be valid to do the lgdt, then I need to
rely on even more stuff dependent on the decompression as i386 does infact,
see? I just prefer to require the decompression code to provide a sane ds/ss
(and cs). I know decompression code returns valid ds/ss and I think current
requirement is the cleaner one and I don't see any problem in doing that.

> I need to retract this a bit.  You are still building a compressed image,

Sure, not compressed images aren't supported (not sure it even worth to support
uncompressed images in the long run as those machines will have _enough_ memory
to decompress the kernel, even my dragonball based PDA has btw :). And
anyways at this point in time what we really care is that a bzImage boots from
floppy at the moment and that works just fine (definitely not by luck).

> Nope.  Though I suspect we should do the switch to 64bit mode in
> setup.S and not have these issues pollute head.S at all.

Only point of head.S is to switch to 64bit with minimal pagetable setup in
place and then to jump in kernel virtual address space to run 64bit C code.

If we do the switch to 64bit in setup.S then we have to change the
decompression code and then the decompression code wouldn't work anymore with
other x86 bootloaders that are not been changed in their "setup.S". So
I'd cosndier it a very bad thing.

Also current head.S has much less pollution than the i386 one IMHO as it's been
rewritten to do only the minimal stuff in asm and a new head64.c is been
created to fixup all the rest in C so that's readable and maintainable and I
hope you enjoy this too ;).

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

  parent reply	other threads:[~2000-11-12 22:31 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-10 23:37 bzImage ~ 900K with i386 test11-pre2 Robert Lynch
2000-11-10 23:47 ` H. Peter Anvin
2000-11-11  2:25   ` Max Inux
2000-11-11  3:03     ` H. Peter Anvin
2000-11-11  5:28       ` Chmouel Boudjnah
2000-11-11 11:27       ` Max Inux
2000-11-11 11:28         ` Jan Niehusmann
2000-11-11 11:38         ` bzImage ~ 900K with i386 test11-pre2, I stand corrected Max Inux
2000-11-11 13:49         ` bzImage ~ 900K with i386 test11-pre2 James A. Sutherland
2000-11-11 20:08         ` H. Peter Anvin
2000-11-11 11:36       ` Tigran Aivazian
2000-11-11 11:38         ` Tigran Aivazian
2000-11-11 11:52         ` Max Inux
2000-11-11 14:42         ` Andrea Arcangeli
2000-11-11 14:51           ` Tigran Aivazian
2000-11-11 16:26             ` Andrea Arcangeli
2000-11-11 16:46               ` Tigran Aivazian
2000-11-11 18:47                 ` Andrea Arcangeli
2000-11-11 19:35                 ` Eric W. Biederman
2000-11-12 11:29                   ` Andrea Arcangeli
2000-11-12 13:14                     ` Eric W. Biederman
2000-11-12 15:37                       ` Andrea Arcangeli
2000-11-12 15:44                         ` Andi Kleen
2000-11-12 16:33                           ` Andrea Arcangeli
2000-11-12 18:57                         ` Eric W. Biederman
2000-11-12 19:33                           ` Andi Kleen
2000-11-16 17:43                             ` Eric W. Biederman
2000-11-12 22:30                           ` Andrea Arcangeli [this message]
2000-11-12 19:20                         ` Eric W. Biederman
2000-11-12 23:03                           ` Andrea Arcangeli
2000-11-11 20:09         ` H. Peter Anvin
2000-11-12 16:22           ` Andrea Arcangeli
2000-11-11 16:05       ` Andrzej Krzysztofowicz
2000-11-11 17:27         ` Jeff Garzik
2000-11-14 14:02         ` Werner Almesberger
2000-11-11  5:47 ` Peter Samuelson
2000-11-11 14:30   ` Andi Kleen
2000-11-11 15:43     ` Thomas Köhler
2000-11-11 18:03     ` Robert Lynch
2000-11-11 18:30       ` Andi Kleen
2000-11-11 18:57         ` Robert Lynch
2000-11-11 20:35           ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001112233043.C11857@athlon.random \
    --to=andrea@suse.de \
    --cc=ebiederm@xmission.com \
    --cc=hpa@transmeta.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxinux@bigfoot.com \
    --cc=tigran@aivazian.fsnet.co.uk \
    --cc=tigran@veritas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox