All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Keith M Wesolowski <wesolows@foobazco.org>,
	"Kevin D. Kissell" <kevink@mips.com>,
	linux-mips@linux-mips.org
Subject: Re: CVS Update@-mips.org: linux
Date: Tue, 22 Jul 2003 23:21:17 +0200	[thread overview]
Message-ID: <20030722212117.GB1660@linux-mips.org> (raw)
In-Reply-To: <Pine.GSO.3.96.1030722212122.607D-100000@delta.ds2.pg.gda.pl>

On Tue, Jul 22, 2003 at 09:39:40PM +0200, Maciej W. Rozycki wrote:

> > sparc32 and sparc64 processors and systems are significantly
> > different.  For example, the SRMMU present in v8 CPUs is 100% replaced
> > with a totally different MMU (indeed, totally different instructions,
> > access methods, etc) in v9.  Accordingly there is very little code in
> > common between the two ports, and most of that is in device handling;
> > code that is in drivers/sbus and thus shared anyway.
> 
>  Well, the MMU of (original) 32-bit MIPS processors (i.e. R2k/R3k) is
> completely different from the one in later ones, too.  I suspect this is
> true for the R6k as well.  The exception handlers differ a bit as well,
> especially considering the XTLB refill one.  That probably counts as
> nitpicking, though... 

It's also a question of taste - and that one can be discussed forever.
How far do you want to factor our common code, as little as possible
which was our previous approach or extremly aggressive, glibc-like.

And yes, the R6000 is different.  With that in mind R2000 and R4000 look
like enzygotic twins ...

> > Something that made sense for sparc might not make sense for mips.
> 
>  Certainly it needs to be analysed on a case by case basis, avoiding
> blanket assumptions.  Anyway, I still see two reasons for having at least
> a separate top-level directory:
> 
> 1. A better separation of the more straightforward 32-bit Makefile and the
> more complicated 64-bit one.
> 
> 2. A better visual existence of the 64-bit port; not really a technical
> advantage, but more a psychological one.  It stops any newcomer wondering
> whether we support 64-bit systems natively or not. 

I was thinking about that also.  arch/mips64 and include/asm-mips64 will
go away but on the other side there will be an option to configure a
64-bit kernel in the menus - which will hopefully be more visible than
just two subdirectories.

>  There is also no point in having headers in asm-mips consisting of a
> single #ifdef CONFIG_MIPS32/#else/#endif conditional, where two distinct
> versions should be present in asm-mips and asm-mips64, respectively.  It's
> easier to make a diff between such separate implementations to verify
> everything's OK. 

Like 80% of the headers could be identical between both files without
lots of trickery.  The current approach is have two physical copies of
these identical files.

Btw, an old experience repeats - some of the code was identical except
inline assembler using addu etc. for 32-bit and daddu etc. for 64-bit.
I rewrote that stuff to use C for this arithmetic.  The result - less
inline assembler, more readable code and a file that's identical for
both 32-bit and 64-bit.

  Ralf

  reply	other threads:[~2003-07-22 21:21 UTC|newest]

Thread overview: 143+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030720230140Z8224861-1272+3549@linux-mips.org>
2003-07-21 10:49 ` CVS Update@-mips.org: linux Maciej W. Rozycki
2003-07-21 12:12   ` Kevin D. Kissell
2003-07-21 12:12     ` Kevin D. Kissell
2003-07-21 14:44     ` Ralf Baechle
2003-07-21 15:50     ` Maciej W. Rozycki
2003-07-21 18:20       ` Keith M Wesolowski
2003-07-22 19:39         ` Maciej W. Rozycki
2003-07-22 21:21           ` Ralf Baechle [this message]
2003-07-22 21:37             ` Maciej W. Rozycki
2003-07-22 21:47               ` Geert Uytterhoeven
2003-07-22 22:51                 ` Maciej W. Rozycki
2003-07-30  2:12                   ` Ralf Baechle
2003-07-30  7:47                     ` Maciej W. Rozycki
2003-07-30 14:07                       ` Ralf Baechle
2003-07-30  3:16               ` Ralf Baechle
2003-07-30  7:55                 ` Maciej W. Rozycki
2003-07-30 14:05                   ` Ralf Baechle
2003-07-21 21:14       ` Ralf Baechle
2003-07-22 19:40         ` Maciej W. Rozycki
2003-07-21 14:42   ` Ralf Baechle
     [not found] <20041218022359Z8225198-1751+3809@linux-mips.org>
2004-12-18 21:32 ` Steven J. Hill
2004-12-18 22:28   ` Maciej W. Rozycki
     [not found] <20041217205625Z8225073-1751+3779@linux-mips.org>
2004-12-18  1:04 ` Maciej W. Rozycki
     [not found] <20041216030425Z8225321-1751+3720@linux-mips.org>
2004-12-16  3:13 ` Steven J. Hill
2004-12-16  3:52 ` Maciej W. Rozycki
     [not found] <20041209220930Z8225298-1751+3401@linux-mips.org>
2004-12-09 22:21 ` Manish Lachwani
     [not found] <20041127061929Z8224786-1751+2584@linux-mips.org>
2004-11-27 22:05 ` Maciej W. Rozycki
2004-11-27 23:15   ` Ralf Baechle
2004-11-28  2:01     ` Maciej W. Rozycki
2004-11-28 11:53       ` Ralf Baechle
2004-11-28 17:44         ` Maciej W. Rozycki
2004-11-28 17:57           ` Ralf Baechle
2004-11-29 14:51         ` Jan-Benedict Glaw
     [not found] <20041020023431Z98555-1751+175@linux-mips.org>
2004-10-20 16:58 ` Thomas Koeller
2004-10-21  9:19   ` Thomas Koeller
2004-10-21 13:03     ` Ralf Baechle
2004-10-21 15:56       ` Maciej W. Rozycki
     [not found] <20040820120223Z8225206-1530+8785@linux-mips.org>
2004-08-23  9:29 ` Maciej W. Rozycki
2004-08-23  9:54   ` Kumba
2004-08-23 10:58     ` Ralf Baechle
2004-08-23 10:24   ` Ralf Baechle
2004-08-23 11:40     ` Maciej W. Rozycki
     [not found] <20040811202903Z8225206-1530+8297@linux-mips.org>
2004-08-11 20:36 ` Christoph Hellwig
2004-05-19 17:03 Manish Lachwani
     [not found] <20040519162924Z8225564-1530+2150@linux-mips.org>
2004-05-19 16:43 ` Maciej W. Rozycki
     [not found] <20040420163230Z8225288-1530+99@linux-mips.org>
2004-04-20 17:51 ` Jun Sun
2004-04-20 20:11   ` Ralf Baechle
2004-04-20 20:20     ` Pete Popov
2004-04-20 22:31     ` Jun Sun
2004-04-21  8:55       ` Gleb O. Raiko
2004-04-21 14:11       ` Maciej W. Rozycki
2004-04-21 17:20         ` Jun Sun
2004-04-21 18:04           ` Maciej W. Rozycki
     [not found] <20040322200826Z8225300-9616+4225@linux-mips.org>
2004-03-23 12:44 ` Maciej W. Rozycki
     [not found] <20040317153023Z8225229-9616+3963@linux-mips.org>
2004-03-17 15:37 ` freshy98
     [not found] <20040315205101Z8225248-9616+3861@linux-mips.org>
2004-03-16  4:11 ` Yoichi Yuasa
     [not found] <20040303034310Z8225905-9616+2989@linux-mips.org>
2004-03-03  4:09 ` Ralf Baechle
     [not found] <20040208143438Z8224987-9616+1909@linux-mips.org>
2004-02-08 14:36 ` William Lee Irwin III
2004-02-08 14:40   ` Christoph Hellwig
     [not found] <20040202141939Z8225226-9616+1555@linux-mips.org>
2004-02-02 15:13 ` Maciej W. Rozycki
2004-02-02 15:23   ` Ralf Baechle
2004-02-03 15:30     ` Maciej W. Rozycki
2004-02-03 15:49       ` Ralf Baechle
2004-02-03 16:04         ` Maciej W. Rozycki
     [not found] <20040123165755Z8225342-9616+749@linux-mips.org>
2004-01-23 17:03 ` Maciej W. Rozycki
     [not found] <20040123142002Z8225342-9616+728@linux-mips.org>
2004-01-23 16:50 ` Maciej W. Rozycki
     [not found] <20040115062800Z8225198-9616+139@linux-mips.org>
2004-01-15  9:39 ` Ralf Baechle
     [not found] <20040113080926Z8225270-16706+2387@linux-mips.org>
2004-01-13 17:22 ` Dan Aizenstros
2004-01-14 15:25   ` Maciej W. Rozycki
2004-01-14 17:34     ` Pete Popov
     [not found] <20031124151816Z8225418-16706+435@linux-mips.org>
2003-11-24 15:23 ` Jan-Benedict Glaw
     [not found] <20031103231010Z8225443-1272+8723@linux-mips.org>
2003-11-04 18:48 ` Maciej W. Rozycki
2003-11-04 18:48   ` Maciej W. Rozycki
     [not found] <20031013142637Z8225419-1272+7775@linux-mips.org>
     [not found] ` <Pine.GSO.3.96.1031014114452.17028B-100000@delta.ds2.pg.gda.pl>
2003-10-14 13:28   ` Ralf Baechle
2003-10-15 14:23     ` Maciej W. Rozycki
     [not found] <20031009160717Z8225587-1272+7472@linux-mips.org>
2003-10-10 18:56 ` Kip Walker
2003-10-10 19:03   ` Kip Walker
2003-10-11  7:27     ` Ralf Baechle
2003-10-14  9:28   ` Maciej W. Rozycki
     [not found] <20030909113150Z8225348-1272+5180@linux-mips.org>
2003-09-09 13:40 ` Maciej W. Rozycki
2003-09-10  8:51   ` Ralf Baechle
     [not found] <20030825170001Z8225388-1272+4466@linux-mips.org>
2003-08-25 17:18 ` Ralf Baechle
     [not found] <20030729120925Z8225214-1272+3844@linux-mips.org>
2003-07-29 12:20 ` Jan-Benedict Glaw
     [not found] <20030722005641Z8225235-1272+3651@linux-mips.org>
2003-07-22  1:22 ` Geert Uytterhoeven
     [not found] <20030716010829Z8224802-1272+3435@linux-mips.org>
2003-07-16  1:17 ` Ralf Baechle
     [not found] <20030627191204Z8225311-1272+2885@linux-mips.org>
2003-06-27 19:46 ` Maciej W. Rozycki
2003-06-27 20:32   ` Kip Walker
2003-06-27 20:48     ` Maciej W. Rozycki
     [not found] <20030624033916Z8224827-1272+2821@linux-mips.org>
2003-06-24  9:31 ` Ralf Baechle
2003-06-24 17:51   ` Pete Popov
2003-06-24 21:10     ` Ralf Baechle
     [not found] <20030615004718Z8225220-1272+2582@linux-mips.org>
2003-06-16  1:19 ` Atsushi Nemoto
2003-06-16  1:42   ` Atsushi Nemoto
2003-06-16  1:58     ` Atsushi Nemoto
     [not found] <20030615135712Z8225205-1272+2604@linux-mips.org>
2003-06-15 15:18 ` ilya
     [not found] <20030613135835Z8225250-1272+2544@linux-mips.org>
2003-06-13 14:19 ` Geert Uytterhoeven
2003-06-13 14:30   ` Ralf Baechle
2003-06-13 17:33     ` Jun Sun
2003-06-13 18:56       ` Geert Uytterhoeven
2003-06-13 20:28         ` Maciej W. Rozycki
2003-06-13 21:00           ` Dan Malek
2003-06-13 21:44             ` Jun Sun
2003-06-13 23:23               ` Ralf Baechle
2003-06-14 18:55                 ` Maciej W. Rozycki
2003-06-14 18:48             ` Maciej W. Rozycki
2003-06-13 21:45           ` Jun Sun
     [not found] <20030605182419Z8224802-1272+2270@linux-mips.org>
2003-06-05 18:42 ` Guido Guenther
2003-06-05 19:45   ` Jan-Benedict Glaw
2003-06-05 20:12     ` Ralf Baechle
2003-06-09 11:12 ` Maciej W. Rozycki
2003-06-09 11:46   ` Geert Uytterhoeven
     [not found] <20030601120750Z8225197-1272+2136@linux-mips.org>
2003-06-01 14:25 ` Jan-Benedict Glaw
2003-06-01 15:56   ` Ralf Baechle
2003-06-01 16:10     ` Jan-Benedict Glaw
     [not found] <20030516221926Z8225233-1272+1964@linux-mips.org>
2003-05-16 22:27 ` Thiemo Seufer
2003-05-17 16:13   ` Maciej W. Rozycki
     [not found] <20030427233451Z8225245-1272+1630@linux-mips.org>
2003-04-30  8:55 ` Maciej W. Rozycki
     [not found] <20030424114755Z8225208-1272+1554@linux-mips.org>
2003-04-28 10:25 ` Atsushi Nemoto
2003-04-28 11:27   ` Ralf Baechle
     [not found] <20030421125733Z8225073-1272+1478@linux-mips.org>
2003-04-21 16:00 ` Ralf Baechle
     [not found] <20030412205002Z8225201-1272+1267@linux-mips.org>
2003-04-14  1:05 ` Wayne Chen
2003-04-14  1:05   ` Wayne Chen
     [not found] <20030402120316Z8225232-1272+1120@linux-mips.org>
2003-04-13 15:22 ` Karsten Merker
2003-04-14 11:57   ` Maciej W. Rozycki
2003-04-14 15:55     ` Ralf Baechle
     [not found] <20030403133610Z8225197-1272+1139@linux-mips.org>
2003-04-03 14:11 ` Maciej W. Rozycki
2003-04-03 14:24   ` Ralf Baechle
2003-04-03 14:48     ` Maciej W. Rozycki
2003-04-03 15:42       ` Ralf Baechle
2003-04-03 16:27         ` Maciej W. Rozycki
2003-04-03 16:31           ` Dominic Sweetman
2003-04-03 16:47             ` Maciej W. Rozycki
2003-04-03 22:55               ` Ralf Baechle
2003-04-03 14:51     ` Juan Quintela
     [not found] <20030306011121Z8225204-1272+770@linux-mips.org>
2003-03-26 16:52 ` Maciej W. Rozycki
     [not found] <20030220194640Z8225262-1272+600@linux-mips.org>
2003-02-21 12:32 ` Maciej W. Rozycki
2003-02-21 20:22   ` Kip Walker
2003-02-21 20:50     ` Maciej W. Rozycki
     [not found] <20030216062530Z8224847-1272+556@linux-mips.org>
2003-02-17 13:46 ` Ralf Baechle
2003-02-17 19:38   ` Pete Popov
     [not found] <20030126173616Z8225206-1272+297@linux-mips.org>
2003-01-27  6:28 ` Ralf Baechle
2003-01-27 12:04   ` Maciej W. Rozycki
     [not found] <20021102200215Z1123906-9213+801@linux-mips.org>
2002-11-02 20:12 ` Geert Uytterhoeven

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=20030722212117.GB1660@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=kevink@mips.com \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@ds2.pg.gda.pl \
    --cc=wesolows@foobazco.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.