From ralf@dea.waldorf-gmbh.de  Sun Mar  4 20:29:09 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id UAA17822; Sun, 4 Mar 2001 20:29:09 +0100 (MET)
Received-Date: Sun, 4 Mar 2001 20:29:09 +0100 (MET)
Received: from u-155-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.155)
 via SMTP by guadalquivir.fnet.fr, id smtpd017820; Sun Mar  4 20:29:01 2001
Received: from dea ([193.98.169.28]:8064 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867052AbRCDT2o>;
	Sun, 4 Mar 2001 20:28:44 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f24JH7r16614
	for linux-mips@fnet.fr; Sun, 4 Mar 2001 20:17:08 +0100
Date: Sun, 4 Mar 2001 20:17:07 +0100
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: SGI indigo 2
Message-ID: <20010304201707.A15182@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Length: 419
Lines: 18

(Forwarding a bounced non-subscriber posting ...)

----- Forwarded message from "RP van Ruiten" <rpvanruiten@wanadoo.nl> -----

From: "RP van Ruiten" <rpvanruiten@wanadoo.nl>
Date: Sat, 3 Mar 2001 21:43:20 +0100 (MET)
To: <linux-mips@fnet.fr>
Subject: SGI indigo 2

Hallo

I have a indigo 2 (sililcon Graphics)
can i install linux on it?????
with/what kind can i install

Greets Rody

----- End forwarded message -----

From mfklar@ponymail.com  Mon Mar  5 03:01:37 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id DAA23450; Mon, 5 Mar 2001 03:01:37 +0100 (MET)
Received-Date: Mon, 5 Mar 2001 03:01:37 +0100 (MET)
Received: from short.adgrafix.com(63.79.128.2)
 via SMTP by guadalquivir.fnet.fr, id smtpd023448; Mon Mar  5 03:01:27 2001
Received: from ppan2 (c534317-a.stcla1.sfba.home.com [24.20.134.153])
	by short.adgrafix.com (8.9.3/8.9.3) with SMTP id VAA20699;
	Sun, 4 Mar 2001 21:03:36 -0500 (EST)
From: "Mike Klar" <mfklar@ponymail.com>
To: <linux-mips@oss.sgi.com>, <linux-mips@fnet.fr>
Subject: FPU context clobbered by signals
Date: Sun, 4 Mar 2001 17:56:38 -0800
Message-ID: <NDBBIDGAOKMNJNDAHDDMEEHOCOAA.mfklar@ponymail.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Content-Length: 3307
Lines: 56

Back in September, Atsushi Nemoto reported a problem with the way signal
handling was handling FPU contexts in the 2.2 kernel.  I think I'm seeing
the same thing in the 2.4 kernel.  The behavior I observe is that a user
process that is using floating point registers sees those registers get
whacked when another process gets a signal.  Just executing an arbitrary
command from a bash shell (while running floating point test app in the
background) is enough to demonstrate this.

Looking at setup_sigcontext() and restore_sigcontext() in
arch/mips/kernel/signal.c, the handling of FPU context certainly looks
wrong.  If nothing else, setting current->used_math to 0 will cause FPU
context to be reinitialized the next time that process reacquires the FPU
context.  I was going to fix this, but I really can't figure out what this
code is trying to do.

Currently setup_sigcontext() appears to behave as follows:
If the current process owns the FPU context, sc_ownedfp is set to 1 in the
sigcontext passed to the signal handler, and the floating point registers
are saved in that sigcontext.  This makes sense.
If the current process does not own the FPU context, but did at one point
execute FPU operations (which all glibc apps will do for initialization),
sc_ownedfp in the sigcontext is set to 0, and the floating point registers
are still saved.  This is, at the very least, a security hole, since those
registers belong to a different process at that point.

And restore_sigcontext() appears to behave thusly:
If sc_ownedfp is set in the sigcontext that is passed back from the signal
handler, the FPU context is restored from the sigcontext, and FPU context
ownership is given to the current process, without saving the old context.
Either I'm misunderstanding this, or there is a possibility that this will
simply forget about some other process' FPU context.

So what _is_ the desired behavior here?  The current behavior (again, unless
I'm misunderstanding something) gives the signal handler access to some
other process' FPU context in the case that the signaled process did not own
the FPU.  Should it:
1) Only pass the floating point registers in sigcontext if the signaled
process owned the FPU.  or
2) Always pass the signaled process' floating point registers if it had ever
used FPU operations.  This would require getting those registers from the
context saved on the stack instead of the current FP registers if the
current process does not own the FPU.

I guess what I'm trying to figure out here is the significance of sc_ownedfp
in struct sigcontext.  Option 1 would have it mean whether or not the
floating point register values in sigcontext are meaningful, but this seems
wrong.  The signal handler may want to know what the process' floating point
registers were at the time of the signal, unconditionally of whether it
owned the FPU context at the time.  Option 2 would have it mean... ummm...
I'm not sure.  I'm not sure why the signal handler would really care about
whether or not this process owned the FPU or some other process did, as long
as the floating point registers saved in sigcontext belong to the signaled
process.  It also doesn't seem all that useful to have the signal handler be
able to change the FPU ownership by changing the value of sc_ownedfp.

Mike Klar

From kevink@mips.com  Mon Mar  5 10:03:45 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id KAA27447; Mon, 5 Mar 2001 10:03:45 +0100 (MET)
Received-Date: Mon, 5 Mar 2001 10:03:45 +0100 (MET)
Received: from mx.mips.com(206.31.31.226)
 via SMTP by guadalquivir.fnet.fr, id smtpd027445; Mon Mar  5 10:03:36 2001
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id BAA28018;
	Mon, 5 Mar 2001 01:03:35 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id BAA26292;
	Mon, 5 Mar 2001 01:03:31 -0800 (PST)
Message-ID: <002e01c0a553$b5c48e00$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Mike Klar" <mfklar@ponymail.com>, <linux-mips@oss.sgi.com>,
        <linux-mips@fnet.fr>
References: <NDBBIDGAOKMNJNDAHDDMEEHOCOAA.mfklar@ponymail.com>
Subject: Re: FPU context clobbered by signals
Date: Mon, 5 Mar 2001 10:07:20 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 2671
Lines: 52

> Currently setup_sigcontext() appears to behave as follows:
> If the current process owns the FPU context, sc_ownedfp is set to 1 in the
> sigcontext passed to the signal handler, and the floating point registers
> are saved in that sigcontext.  This makes sense.
> If the current process does not own the FPU context, but did at one point
> execute FPU operations (which all glibc apps will do for initialization),
> sc_ownedfp in the sigcontext is set to 0, and the floating point registers
> are still saved.  This is, at the very least, a security hole, since those
> registers belong to a different process at that point.

I'm speaking from first principles here, not from an analysis
of the code on non-MIPS architectures, but what *should*
happen on a signal to a process that is not the current/latest
user of the FPU is that the FPU sigcontext information should
be copied from the saved thread context state.

> And restore_sigcontext() appears to behave thusly:
> If sc_ownedfp is set in the sigcontext that is passed back from the signal
> handler, the FPU context is restored from the sigcontext, and FPU context
> ownership is given to the current process, without saving the old context.
> Either I'm misunderstanding this, or there is a possibility that this will
> simply forget about some other process' FPU context.

The behavior described sort-of makes sense, if one is willing
to take it on faith that the signal handler did not trash the
sigcontext information (which I personally consider unwise).
If the signal was sent to the current owner of the FPU, the
post-signal thread FPU  state needs to represent the pre-signal
state of the FPU, which was saved in the sigcontext structure.

> So what _is_ the desired behavior here?

The desired behavior (IMHO) is that signals are dispatched
with the FPU state corresponding to the last known FPU
state of the thread taking the signal.  If the only copy of that
state prior to signal dispatch resides in the FPU, that state
needs to be saved before signal dispatch and restored
after signal return.

Or, to put it another way, the semantics of signals with
respect to FP registers should be the same as the
semantics with respect to general purpose registers.
The only wrinkle is the lazy FPU context switch logic,
which creates two anomolous situations: one where
the current contents of the FPU does not belong to
the current thread (because the current thread has
not executed any FP instructions), and one where the
FP register state of a non-current thread is not yet saved
in the thread state of that thread (because no subsequent
thread has executed any FP instructions).

            Kevin K.

From cosmos@astonlinux.com  Thu Mar  8 09:58:53 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id JAA25440; Thu, 8 Mar 2001 09:58:53 +0100 (MET)
Received-Date: Thu, 8 Mar 2001 09:58:53 +0100 (MET)
Received: from UNKNOWN(210.221.126.2), claiming to be "dsic.co.kr"
 via SMTP by guadalquivir.fnet.fr, id smtpd025438; Thu Mar  8 09:58:51 2001
Received: from cosmos [192.168.2.92] by dsic.co.kr [127.0.0.1]
	with SMTP (MDaemon.v3.5.2.R)
	for <linux-mips@fnet.fr>; Thu, 08 Mar 2001 17:57:03 +0900
Message-ID: <004601c0a7ad$d2233f40$5c02a8c0@cosmos>
From: =?ks_c_5601-1987?B?sK29xbHU?= <cosmos@astonlinux.com>
To: "MipsMailList" <linux-mips@fnet.fr>
Subject: How can i get the serial device driver(8051)?
Date: Thu, 8 Mar 2001 17:57:36 +0900
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0043_01C0A7F9.41F0F6A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-MDRemoteIP: 192.168.2.92
X-Return-Path: cosmos@astonlinux.com
X-MDaemon-Deliver-To: linux-mips@fnet.fr
Content-Length: 1289
Lines: 29

This is a multi-part message in MIME format.

------=_NextPart_000_0043_01C0A7F9.41F0F6A0
Content-Type: text/plain;
	charset="ks_c_5601-1987"
Content-Transfer-Encoding: base64

SSBhbSBwb3J0aW5nIGxpbnV4IHRvIFIzMDAwIE1JUFMuDQoNCklzIHRoZXJlIGFueSBzZXJpYWwg
ZGV2aWNlIGRyaXZlciBmb3IgaW50ZWwgODA1MT8NCg0KSWYgaXQgZXhpc3RzLCAgaG93IGNhbiBJ
IGdldCB0aGUgZHJpdmVyPyANCg0K

------=_NextPart_000_0043_01C0A7F9.41F0F6A0
Content-Type: text/html;
	charset="ks_c_5601-1987"
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWtz
X2NfNTYwMS0xOTg3IiBodHRwLWVxdWl2PUNvbnRlbnQtVHlwZT4NCjxNRVRBIGNvbnRlbnQ9Ik1T
SFRNTCA1LjAwLjI5MjAuMCIgbmFtZT1HRU5FUkFUT1I+DQo8U1RZTEU+PC9TVFlMRT4NCjwvSEVB
RD4NCjxCT0RZIGJnQ29sb3I9I2ZmZmZmZj4NCjxESVY+PEZPTlQgc2l6ZT0yPkkgYW0gcG9ydGlu
ZyBsaW51eCB0byBSMzAwMCBNSVBTLjwvRk9OVD48L0RJVj4NCjxESVY+Jm5ic3A7PC9ESVY+DQo8
RElWPjxGT05UIHNpemU9Mj5JcyB0aGVyZSBhbnkgc2VyaWFsIGRldmljZSBkcml2ZXIgZm9yIGlu
dGVsIDgwNTE/PC9GT05UPjwvRElWPg0KPERJVj4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6
ZT0yPklmIGl0IGV4aXN0cywmbmJzcDsgaG93IGNhbiBJIGdldCB0aGUgZHJpdmVyPyA8L0ZPTlQ+
PC9ESVY+DQo8RElWPiZuYnNwOzwvRElWPjwvQk9EWT48L0hUTUw+DQo=

------=_NextPart_000_0043_01C0A7F9.41F0F6A0--


From cosmos@astonlinux.com  Thu Mar  8 10:40:13 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id KAA26157; Thu, 8 Mar 2001 10:40:13 +0100 (MET)
Received-Date: Thu, 8 Mar 2001 10:40:13 +0100 (MET)
Received: from UNKNOWN(210.221.126.1), claiming to be "dsic.co.kr"
 via SMTP by guadalquivir.fnet.fr, id smtpd026155; Thu Mar  8 10:40:07 2001
Received: from cosmos [192.168.2.92] by dsic.co.kr [127.0.0.1]
	with SMTP (MDaemon.v3.5.2.R)
	for <linux-mips@fnet.fr>; Thu, 08 Mar 2001 18:38:15 +0900
Message-ID: <001001c0a7b3$9271f3e0$5c02a8c0@cosmos>
From: =?ks_c_5601-1987?B?sK29xbHU?= <cosmos@astonlinux.com>
To: "MipsMailList" <linux-mips@fnet.fr>
Subject: How can i get the serial device driver(8251)?
Date: Thu, 8 Mar 2001 18:38:30 +0900
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000D_01C0A7FE.F89EC3A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-MDRemoteIP: 192.168.2.92
X-Return-Path: cosmos@astonlinux.com
X-MDaemon-Deliver-To: linux-mips@fnet.fr
Content-Length: 1289
Lines: 29

This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C0A7FE.F89EC3A0
Content-Type: text/plain;
	charset="ks_c_5601-1987"
Content-Transfer-Encoding: base64

SSBhbSBwb3J0aW5nIGxpbnV4IHRvIFIzMDAwIE1JUFMuDQoNCklzIHRoZXJlIGFueSBzZXJpYWwg
ZGV2aWNlIGRyaXZlciBmb3IgaW50ZWwgODI1MT8NCg0KSWYgaXQgZXhpc3RzLCAgaG93IGNhbiBJ
IGdldCB0aGUgZHJpdmVyPyANCg0K

------=_NextPart_000_000D_01C0A7FE.F89EC3A0
Content-Type: text/html;
	charset="ks_c_5601-1987"
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWtz
X2NfNTYwMS0xOTg3IiBodHRwLWVxdWl2PUNvbnRlbnQtVHlwZT4NCjxNRVRBIGNvbnRlbnQ9Ik1T
SFRNTCA1LjAwLjI5MjAuMCIgbmFtZT1HRU5FUkFUT1I+DQo8U1RZTEU+PC9TVFlMRT4NCjwvSEVB
RD4NCjxCT0RZIGJnQ29sb3I9I2ZmZmZmZj4NCjxESVY+PEZPTlQgc2l6ZT0yPkkgYW0gcG9ydGlu
ZyBsaW51eCB0byBSMzAwMCBNSVBTLjwvRk9OVD48L0RJVj4NCjxESVY+Jm5ic3A7PC9ESVY+DQo8
RElWPjxGT05UIHNpemU9Mj5JcyB0aGVyZSBhbnkgc2VyaWFsIGRldmljZSBkcml2ZXIgZm9yIGlu
dGVsIDgyNTE/PC9GT05UPjwvRElWPg0KPERJVj4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6
ZT0yPklmIGl0IGV4aXN0cywmbmJzcDsgaG93IGNhbiBJIGdldCB0aGUgZHJpdmVyPyA8L0ZPTlQ+
PC9ESVY+DQo8RElWPiZuYnNwOzwvRElWPjwvQk9EWT48L0hUTUw+DQo=

------=_NextPart_000_000D_01C0A7FE.F89EC3A0--


From ralf@dea.waldorf-gmbh.de  Mon Mar 12 13:26:30 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id NAA03389; Mon, 12 Mar 2001 13:26:30 +0100 (MET)
Received-Date: Mon, 12 Mar 2001 13:26:30 +0100 (MET)
Received: from u-23-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.23)
 via SMTP by guadalquivir.fnet.fr, id smtpd003325; Mon Mar 12 13:26:24 2001
Received: from dea ([193.98.169.28]:2688 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867060AbRCLM0P>;
	Mon, 12 Mar 2001 13:26:15 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2CCQCY06674
	for linux-mips@fnet.fr; Mon, 12 Mar 2001 13:26:12 +0100
Date: Mon, 12 Mar 2001 13:26:12 +0100
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: [greeen@iii.org.tw: Keypad driver!!]
Message-ID: <20010312132612.A6580@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Length: 756
Lines: 21

----- Forwarded message from "Greeen-III" <greeen@iii.org.tw> -----

From: "Greeen-III" <greeen@iii.org.tw>
Date: Mon, 12 Mar 2001 09:17:24 +0100 (MET)
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        <linux-mips-request@fnet.fr>
Subject: Keypad driver!!

Hi all experts,
I am trying to implement a keypad driver on Linux/MIPS.
Could Any one explain the keypad work?
I traced the /drivers/char/keyboard.c.
It seemed to create a timer interrupt.
The timer toggle the handle to check the status of the keyboard.
Right?

But!! How could we know the keypad is pressed?
The driver didn't need to call request_irq()??
                                                                                        Green

----- End forwarded message -----

From raiko@niisi.msk.ru  Mon Mar 12 15:39:09 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id PAA04103; Mon, 12 Mar 2001 15:39:09 +0100 (MET)
Received-Date: Mon, 12 Mar 2001 15:39:09 +0100 (MET)
Received: from t111.niisi.ras.ru(193.232.173.111)
 via SMTP by guadalquivir.fnet.fr, id smtpd004087; Mon Mar 12 15:37:57 2001
Received: from t06.niisi.ras.ru (t06.niisi.ras.ru [193.232.173.6])
	by t111.niisi.ras.ru (8.9.1/8.9.1) with ESMTP id RAA05927;
	Mon, 12 Mar 2001 17:37:12 +0300
Received: (from uucp@localhost) by t06.niisi.ras.ru (8.7.6/8.7.3) with UUCP id RAA19709; Mon, 12 Mar 2001 17:33:40 +0300
Received: from niisi.msk.ru (t34 [193.232.173.34]) by niisi.msk.ru (8.8.8/8.8.8) with ESMTP id RAA02569; Mon, 12 Mar 2001 17:30:29 +0300 (MSK)
Message-ID: <3AACE13E.655BA256@niisi.msk.ru>
Date: Mon, 12 Mar 2001 17:46:22 +0300
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Organization: NIISI RAN
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en,ru
MIME-Version: 1.0
To: greeen@iii.org.tw
CC: linux-mips@fnet.fr
Subject: Re: [greeen@iii.org.tw: Keypad driver!!]
References: <20010312132612.A6580@bacchus.dhis.org>
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit
Content-Length: 969
Lines: 27

> From: "Greeen-III" <greeen@iii.org.tw>
> Date: Mon, 12 Mar 2001 09:17:24 +0100 (MET)
> To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
>         <linux-mips-request@fnet.fr>
> Subject: Keypad driver!!
> 
> Hi all experts,
> I am trying to implement a keypad driver on Linux/MIPS.
> Could Any one explain the keypad work?
> I traced the /drivers/char/keyboard.c.
> It seemed to create a timer interrupt.
> The timer toggle the handle to check the status of the keyboard.
> Right?
> 
> But!! How could we know the keypad is pressed?
> The driver didn't need to call request_irq()??
>                                                                                         Green
> 
> ----- End forwarded message -----

I read keboard.c again, didn't see any timers at all.
Read pc_keyb.c, for example. Interrupts from keyboard are handled there.
Generally, a low level keyboard driver are responsible for it (and
pc_keyb.c is not worse example).

Regards,
Gleb.

From ralf@dea.waldorf-gmbh.de  Tue Mar 13 17:28:21 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id RAA16867; Tue, 13 Mar 2001 17:28:21 +0100 (MET)
Received-Date: Tue, 13 Mar 2001 17:28:21 +0100 (MET)
Received: from u-226-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.226), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd016865; Tue Mar 13 17:28:07 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2DFhOx06844
	for linux-mips@fnet.fr; Tue, 13 Mar 2001 16:43:24 +0100
Date: Tue, 13 Mar 2001 16:43:24 +0100
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: [cosmos@astonlinux.com: padzero (fs/binfmt_elf.c)]
Message-ID: <20010313164324.C1208@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by dea.waldorf-gmbh.de id f2DFhOx06844
Content-Length: 1001
Lines: 37

----- Forwarded message from =B0=AD=BD=C5=B1=D4 <cosmos@astonlinux.com> -=
----

From: =B0=AD=BD=C5=B1=D4 <cosmos@astonlinux.com>
Date: Tue, 13 Mar 2001 08:55:07 +0100 (MET)
To: l linux-mips <linux-mips@fnet.fr>
Subject: padzero (fs/binfmt_elf.c)

Hi everyone.

I am poring Linux 2.4 to MIPS(R3000).

I have a some problem. please tell me some direction or answer.

After the /sbin/init is started,  the elf handler is loaded.
          kernel message --> "Using ELF interpreter /lib/ld.so.1"
After elf handler is loaded,  the elf interperter is
loaded(load_elf_interp).
In the load_elf_interp funcion, padzero is not work.
       /*
         * Now fill out the bss section.  First pad the last page up
         * to the page boundary, and then perform a mmap to make sure
         * that there are zero-mapped pages up to and including the
         * last bss page.
         */
        padzero(elf_bss);

why the padzero function is not working?

Kang..




----- End forwarded message -----

  Ralf

From greeen@iii.org.tw  Wed Mar 14 06:25:38 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id GAA23696; Wed, 14 Mar 2001 06:25:38 +0100 (MET)
Received-Date: Wed, 14 Mar 2001 06:25:38 +0100 (MET)
Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw"
 via SMTP by guadalquivir.fnet.fr, id smtpd023687; Wed Mar 14 06:25:29 2001
Received: from [140.92.66.45] (helo=iiidns.iii.org.tw)
	by mta0.iii.org.tw with esmtp (Exim 3.16 #1)
	id 14d3j4-00019S-00; Wed, 14 Mar 2001 13:21:34 +0800
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f2E5LRU09850;
	Wed, 14 Mar 2001 13:21:33 +0800 (CST)
Message-ID: <001d01c0ac46$4c28bbc0$4c0c5c8c@trd.iii.org.tw>
From: "Greeen-III" <greeen@iii.org.tw>
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: pthread library support!!
Date: Wed, 14 Mar 2001 13:19:01 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_001A_01C0AC89.558D6240"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 4362
Lines: 125

This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C0AC89.558D6240
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi all,

The Linus has run on my machine ( r3912 ).
I want to write a thread program.
It will fail in load library.
The kernel will show error message=20

>error in loading shared libraries
>/lib/libpthread.so.0 : undefined symbol : __sched_get_priority_max=20

Is there any patch files I need?
Appreciate in advance.
                                                                         =
       Green

------------------------testpthread.c----------------------------------
#include <stdio.h>
#include <pthread.h>

int FirstThread()
{
 printf("test thread!!");
 return 1;
}

int main(void)
{
 int rtn=3D-1;
 pthread_t MyThread;=20

 /* Call Thread */
 printf("-------> FirstThread\n");
 rtn =3D pthread_create(    &MyThread,
      (pthread_attr_t *) NULL,
      (void*)FirstThread,
      NULL );

 if(rtn =3D=3D 0)
  pthread_join( MyThread, NULL);

 return 1;
}
-----------------------------------End of =
testpthread.c---------------------------------------------

------=_NextPart_000_001A_01C0AC89.558D6240
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>The Linus has run on my machine ( r3912 =
).</FONT></DIV>
<DIV><FONT face=3DArial>I want to write a <STRONG>thread</STRONG>=20
program.</FONT></DIV>
<DIV><FONT face=3DArial>It will fail in load library.</FONT></DIV>
<DIV><FONT face=3DArial>The kernel will show error message </FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>&gt;<STRONG>error in loading shared=20
libraries</STRONG></FONT></DIV>
<DIV><FONT face=3DArial>&gt;<STRONG>/lib/libpthread.so.0 : undefined =
symbol :=20
__sched_get_priority_max</STRONG> </FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Is there any patch files I need?</FONT></DIV>
<DIV><FONT face=3DArial>Appreciate in advance.</FONT></DIV>
<DIV><FONT face=3DArial>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Green</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT=20
face=3DArial>------------------------testpthread.c-----------------------=
-----------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#include &lt;stdio.h&gt;<BR>#include=20
&lt;pthread.h&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int =
FirstThread()<BR>{<BR>&nbsp;printf("test=20
thread!!");<BR>&nbsp;return 1;<BR>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int main(void)<BR>{<BR>&nbsp;int=20
rtn=3D-1;<BR>&nbsp;pthread_t MyThread; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;/* Call Thread=20
*/<BR>&nbsp;printf("-------&gt; FirstThread\n");<BR>&nbsp;rtn =3D=20
pthread_create(&nbsp;&nbsp;&nbsp;=20
&amp;MyThread,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (pthread_attr_t *)=20
NULL,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
(void*)FirstThread,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL =
);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;if(rtn =3D=3D =
0)<BR>&nbsp;&nbsp;pthread_join(=20
MyThread, NULL);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;return 1;<BR>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-----------------------------------End =
of=20
testpthread.c---------------------------------------------</FONT></DIV></=
BODY></HTML>

------=_NextPart_000_001A_01C0AC89.558D6240--

From greeen@iii.org.tw  Wed Mar 14 13:03:06 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id NAA26757; Wed, 14 Mar 2001 13:03:06 +0100 (MET)
Received-Date: Wed, 14 Mar 2001 13:03:06 +0100 (MET)
Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw"
 via SMTP by guadalquivir.fnet.fr, id smtpd026700; Wed Mar 14 13:02:54 2001
Received: from [140.92.66.45] (helo=iiidns.iii.org.tw)
	by mta0.iii.org.tw with esmtp (Exim 3.16 #1)
	id 14d9vH-0002v8-00; Wed, 14 Mar 2001 19:58:35 +0800
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f2EBwXU27922;
	Wed, 14 Mar 2001 19:58:38 +0800 (CST)
Message-ID: <000e01c0ac7d$481fb1a0$4c0c5c8c@trd.iii.org.tw>
From: "Greeen-III" <greeen@iii.org.tw>
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: Compiler sources!!
Date: Wed, 14 Mar 2001 19:52:39 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000B_01C0ACC0.531D47A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 2371
Lines: 64

This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C0ACC0.531D47A0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi all experts,
I download the bash-2.0.tar.gz.
If I want to build with cross-compiler (mipsel-linux-gcc),
how could I configure the environment.

The following is my configure command.

[ mips]$     CC=3Dmipsel-linux-gcc BUILD_CC=3Dgcc AR=3Dmipsel-linux-ar =
RANLIB=3Dmipsel-linux-ranlib=20
                    ./configure --prefix=3D/usr/local/ =
--host=3Dmipsel-linux --enable-add-ons=3Dyes

It should be wrong.
Who could tell me how to configure it?
Thanks in advance.

------=_NextPart_000_000B_01C0ACC0.531D47A0
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>Hi all experts,</FONT></DIV>
<DIV><FONT face=3DArial>I download the bash-2.0.tar.gz.</FONT></DIV>
<DIV><FONT face=3DArial>If I want to build with cross-compiler=20
(mipsel-linux-gcc),</FONT></DIV>
<DIV><FONT face=3DArial>how could I configure the =
environment.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>The following is my configure =
command.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>[ mips]$&nbsp;&nbsp;&nbsp;&nbsp;=20
<STRONG>CC</STRONG>=3Dmipsel-linux-gcc <STRONG>BUILD_CC</STRONG>=3Dgcc=20
<STRONG>AR</STRONG>=3Dmipsel-linux-ar =
<STRONG>RANLIB</STRONG>=3Dmipsel-linux-ranlib=20
</FONT></DIV>
<DIV><FONT face=3DArial>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <STRONG>./configure</STRONG>=20
<STRONG>--</STRONG></FONT><FONT =
face=3DArial><STRONG>prefix</STRONG>=3D/usr/local/=20
<STRONG>--host</STRONG>=3Dmipsel-linux=20
<STRONG>--enable-add-ons</STRONG>=3Dyes</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>It should be wrong.</FONT></DIV>
<DIV><FONT face=3DArial>Who could tell me how to configure =
it?</FONT></DIV>
<DIV><FONT face=3DArial>Thanks in advance.</FONT></DIV></BODY></HTML>

------=_NextPart_000_000B_01C0ACC0.531D47A0--

From greeen@iii.org.tw  Thu Mar 15 11:13:38 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id LAA07199; Thu, 15 Mar 2001 11:13:38 +0100 (MET)
Received-Date: Thu, 15 Mar 2001 11:13:38 +0100 (MET)
Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw"
 via SMTP by guadalquivir.fnet.fr, id smtpd007197; Thu Mar 15 11:13:27 2001
Received: from [140.92.66.45] (helo=iiidns.iii.org.tw)
	by mta0.iii.org.tw with esmtp (Exim 3.16 #1)
	id 14dUkq-0006zx-00; Thu, 15 Mar 2001 18:13:12 +0800
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f2FAD9U18910;
	Thu, 15 Mar 2001 18:13:13 +0800 (CST)
Message-ID: <006101c0ad38$f2fe4da0$4c0c5c8c@trd.iii.org.tw>
From: "Greeen-III" <greeen@iii.org.tw>
To: "LinuxKernelMailList" <linux-kernel@vger.kernel.org>,
        "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: pthread support!!
Date: Thu, 15 Mar 2001 18:16:01 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_005E_01C0AD7B.FD972E60"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 4053
Lines: 120

This is a multi-part message in MIME format.

------=_NextPart_000_005E_01C0AD7B.FD972E60
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi all,

I try to run the test program which created the thread on MIPS machine.
But It always halt on call libpthread.so.0.
It was suspended when run into the thread function.
Even, "printf" didn't work.
I use the following for the case.
After the kernel load libpthread.so.0, process stopped.
This line "printf("-------> FirstThread\n");" didn't run.

What kind of resource does the pthread need?

Any reply is welcome.
Thanks in advance.
                                                                         =
   Green

_____________________________________________

#include <stdio.h>
#include <pthread.h>

int FirstThread(void)
{
 printf("test thread!!");
 return 1;
}

int main(void)
{
 pthread_t MyThread;=20

 /* Call Thread */
 printf("-------> FirstThread\n");
 pthread_create(    &MyThread,
       (pthread_attr_t *) NULL,
      (void*)FirstThread,
      NULL );
 pthread_join( MyThread, NULL);
 return 1;
}


------=_NextPart_000_005E_01C0AD7B.FD972E60
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>I try to run the test program which created the =
thread on=20
MIPS machine.</FONT></DIV>
<DIV><FONT face=3DArial>But It always halt on call =
libpthread.so.0.</FONT></DIV>
<DIV><FONT face=3DArial>It&nbsp;was suspended when run into the thread=20
function.</FONT></DIV>
<DIV><FONT face=3DArial>Even, "printf" didn't work.</FONT></DIV>
<DIV><FONT face=3DArial>I use the following for the case.</FONT></DIV>
<DIV><FONT face=3DArial>After&nbsp;the kernel load libpthread.so.0, =
process=20
stopped.</FONT></DIV>
<DIV><FONT face=3DArial>This line "</FONT><FONT face=3DArial=20
size=3D2><STRONG>printf("-------&gt; FirstThread\n");</STRONG>" didn't=20
run.</FONT><BR></DIV>
<DIV><FONT face=3DArial>What kind of resource does the pthread =
need?</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Any reply is welcome.</FONT></DIV>
<DIV><FONT face=3DArial>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DArial>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
Green</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT =
face=3DArial>_____________________________________________</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#include &lt;stdio.h&gt;<BR>#include=20
&lt;pthread.h&gt;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int =
FirstThread(void)<BR>{<BR>&nbsp;printf("test=20
thread!!");<BR>&nbsp;return 1;<BR>}</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int main(void)<BR>{<BR>&nbsp;pthread_t =
MyThread;=20
</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;/* Call Thread=20
*/<BR>&nbsp;printf("-------&gt;=20
FirstThread\n");<BR>&nbsp;pthread_create(&nbsp;&nbsp;&nbsp;=20
&amp;MyThread,<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (pthread_attr_t *)=20
NULL,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
(void*)FirstThread,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL=20
);<BR>&nbsp;pthread_join( MyThread, NULL);<BR>&nbsp;return=20
1;<BR>}<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_005E_01C0AD7B.FD972E60--

From ralf@dea.waldorf-gmbh.de  Sun Mar 18 13:39:12 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id NAA06277; Sun, 18 Mar 2001 13:39:12 +0100 (MET)
Received-Date: Sun, 18 Mar 2001 13:39:12 +0100 (MET)
Received: from u-231-21.karlsruhe.ipdial.viaginterkom.de(62.180.21.231), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd006275; Sun Mar 18 13:39:10 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2ICcqQ03906
	for linux-mips@fnet.fr; Sun, 18 Mar 2001 13:38:52 +0100
Date: Sun, 18 Mar 2001 13:38:52 +0100
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: [yua@nycap.rr.com: mips r5900 hardware user guide?]
Message-ID: <20010318133852.A3704@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Length: 322
Lines: 18

----- Forwarded message from "Alex Yu" <yua@nycap.rr.com> -----

From: "Alex Yu" <yua@nycap.rr.com>
Date: Sat, 17 Mar 2001 23:11:10 +0100 (MET)
To: <linux-mips@fnet.fr>
Subject: mips r5900 hardware user guide?

Hi there,

Do you have MIPS R5900 hardware user guide?

Best,
Alex


----- End forwarded message -----

  Ralf

From ralf@dea.waldorf-gmbh.de  Sun Mar 18 13:52:42 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id NAA06399; Sun, 18 Mar 2001 13:52:42 +0100 (MET)
Received-Date: Sun, 18 Mar 2001 13:52:42 +0100 (MET)
Received: from u-231-21.karlsruhe.ipdial.viaginterkom.de(62.180.21.231), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd006397; Sun Mar 18 13:52:33 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2ICqIL03978;
	Sun, 18 Mar 2001 13:52:18 +0100
Date: Sun, 18 Mar 2001 13:52:18 +0100
From: Ralf Baechle <ralf@uni-koblenz.de>
To: "Alex Yu" <yua@nycap.rr.com>
Cc: <linux-mips@fnet.fr>
Subject: Re: mips r5900 hardware user guide?
Message-ID: <20010318135218.B3704@bacchus.dhis.org>
References: <IEEILAPLNJHNOBJJALJJOEOFCHAA.yua@nycap.rr.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <IEEILAPLNJHNOBJJALJJOEOFCHAA.yua@nycap.rr.com>; from yua@nycap.rr.com on Sat, Mar 17, 2001 at 11:11:10PM +0100
X-Accept-Language: de,en,fr
Content-Length: 247
Lines: 8

On Sat, Mar 17, 2001 at 11:11:10PM +0100, Alex Yu wrote:

> Do you have MIPS R5900 hardware user guide?

This CPU was developed by TAEC but they don't have anything on their
website.  Looks to me like Sony is still sitting on the docs ...

  Ralf

From greeen@iii.org.tw  Mon Mar 19 10:34:54 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id KAA14719; Mon, 19 Mar 2001 10:34:54 +0100 (MET)
Received-Date: Mon, 19 Mar 2001 10:34:54 +0100 (MET)
Received: from iiidns.iii.org.tw(140.92.66.45)
 via SMTP by guadalquivir.fnet.fr, id smtpd014717; Mon Mar 19 10:34:43 2001
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f2J8jcU07273;
	Mon, 19 Mar 2001 16:45:42 +0800 (CST)
Message-ID: <001c01c0b04b$7b39df80$4c0c5c8c@trd.iii.org.tw>
From: "Greeen-III" <greeen@iii.org.tw>
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "LinuxKernelMailList" <linux-kernel@vger.kernel.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: Can't run thread!!
Date: Mon, 19 Mar 2001 16:06:14 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0019_01C0B08E.85D446E0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 5589
Lines: 177

This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C0B08E.85D446E0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi all,

I modified the /init/main.c to the following.
I skipped executing the "init" program.
But the program will stop after print "First Kernel thread".
Why??

Should I run the init program first or I forget to initialize something?
I try to change the library version, and the error still exist.

P.S  I use Mips r39xx machine.

                                                                         =
                               Green

------------------------</init/main.c>----------------------------
static int FirstKernelThread(void)
{
 printk("First Kernel thread!!\n");
 execve("/bin/pthread",argv_init,envp_init);
 return 1;
}

static int init(void)
{
...
...
// execve("/sbin/init",argv_init,envp_init);
// execve("/etc/init",argv_init,envp_init);
// execve("/bin/init",argv_init,envp_init);
// execve("/sbin/sulogin",argv_init,envp_init);
// execve("/bin/bash",argv_init,envp_init);

/* create a kernel thread to run my program pthread */
 kernel_thread(FirstKernelThread, NULL, CLONE_FS | CLONE_FILES | =
CLONE_SIGHAND);
...
}


--------------------<testpthread.c>---------------------------
/*
 2001/03/14 Lin-Ming Wan(Green)
 */

#include <stdio.h>
#include <pthread.h>

int FirstThread(void)
{
 printf("test thread!!");
 return 1;
}

int main(void)
{
 pthread_t MyThread;=20

 /* Call Thread */
 printf("-------> FirstThread\n");
 pthread_create(    &MyThread,
       (pthread_attr_t *) NULL,
      (void*)FirstThread,
      NULL );
/*Wait for child process*/
 pthread_join( MyThread, NULL);
 return 1;
}

------=_NextPart_000_0019_01C0B08E.85D446E0
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I modified the /init/main.c to the following.</DIV>
<DIV>I skipped&nbsp;executing the "<STRONG>init</STRONG>" program.</DIV>
<DIV>But the program will stop after print "First Kernel thread".</DIV>
<DIV>Why??</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>Should I run the init program first =
o</FONT><FONT=20
face=3DArial>r I forget to initialize something?</FONT></DIV>
<DIV><FONT face=3DArial>I try to change the library version, and the =
error still=20
exist.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>P.S&nbsp; I&nbsp;use Mips r39xx =
machine.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
Green</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV>------------------------&lt;/init/main.c&gt;------------------------=
----</DIV>
<DIV>static int <FONT=20
color=3D#000080><STRONG>FirstKernelThread</STRONG></FONT>(void)<BR>{<BR>&=
nbsp;printk("First=20
Kernel=20
thread!!\n");<BR>&nbsp;execve("/bin/pthread",argv_init,envp_init);<BR>&nb=
sp;return=20
1;<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>static int init(void)</DIV>
<DIV>{</DIV>
<DIV>...</DIV>
<DIV>...</DIV>
<DIV><FONT=20
color=3D#008000>//&nbsp;execve("/sbin/init",argv_init,envp_init);<BR>//&n=
bsp;execve("/etc/init",argv_init,envp_init);<BR>//&nbsp;execve("/bin/init=
",argv_init,envp_init);<BR>//&nbsp;execve("/sbin/sulogin",argv_init,envp_=
init);<BR>//&nbsp;execve("/bin/bash",argv_init,envp_init);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#008000>/*&nbsp;create a kernel thread to run my =
program=20
<STRONG>pthread</STRONG>&nbsp;*/<BR></FONT>&nbsp;<STRONG>kernel_thread</S=
TRONG>(<FONT=20
color=3D#000080><STRONG>FirstKernelThread</STRONG></FONT>, NULL, =
CLONE_FS |=20
CLONE_FILES | CLONE_SIGHAND);</DIV>
<DIV>...</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>--------------------&lt;<STRONG>testpthread.c&gt;</STRONG>----------=
-----------------</DIV>
<DIV>/*<BR>&nbsp;2001/03/14 Lin-Ming Wan(Green)<BR>&nbsp;*/</DIV>
<DIV>&nbsp;</DIV>
<DIV>#include &lt;stdio.h&gt;<BR>#include &lt;pthread.h&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>int <FONT =
color=3D#ff00ff>FirstThread</FONT>(void)<BR>{<BR>&nbsp;printf("test=20
thread!!");<BR>&nbsp;return 1;<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>int main(void)<BR>{<BR>&nbsp;pthread_t MyThread; </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;<FONT color=3D#008000>/* Call Thread=20
*/<BR></FONT>&nbsp;printf("-------&gt;=20
FirstThread\n");<BR>&nbsp;<STRONG>pthread_create</STRONG>(&nbsp;&nbsp;&nb=
sp;=20
&amp;MyThread,<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (pthread_attr_t *)=20
NULL,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (void*)<FONT=20
color=3D#ff00ff>FirstThread</FONT>,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
NULL=20
);</DIV>
<DIV><FONT color=3D#008000>/*Wait for child=20
process*/</FONT><BR>&nbsp;<STRONG>pthread_join</STRONG>( MyThread,=20
NULL);<BR>&nbsp;return 1;<BR>}</DIV></BODY></HTML>

------=_NextPart_000_0019_01C0B08E.85D446E0--

From guru@efftinc.com  Mon Mar 19 19:20:23 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id TAA00843; Mon, 19 Mar 2001 19:20:23 +0100 (MET)
Received-Date: Mon, 19 Mar 2001 19:20:23 +0100 (MET)
Received: from proxy4.ba.best.com(206.184.139.15)
 via SMTP by guadalquivir.fnet.fr, id smtpd000840; Mon Mar 19 19:20:20 2001
Received: from efftinc.com (fw-irva-20.broadcom.com [63.70.210.20])
	by proxy4.ba.best.com (8.9.3/8.9.2/best.out) with ESMTP id KAA14470;
	Mon, 19 Mar 2001 10:15:02 -0800 (PST)
Message-ID: <3AB64E33.A062439B@efftinc.com>
Date: Mon, 19 Mar 2001 10:21:40 -0800
From: guru <guru@efftinc.com>
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Greeen-III <greeen@iii.org.tw>
CC: LinuxEmbeddedMailList <linux-embedded@waste.org>,
        LinuxKernelMailList <linux-kernel@vger.kernel.org>,
        MipsMailList <linux-mips@fnet.fr>
Subject: Please help
References: <001c01c0b04b$7b39df80$4c0c5c8c@trd.iii.org.tw>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 294
Lines: 10

I have a fundamental question:

If I have to port LINUX on to new processor. How will I get address
mapping of different devices. Some of them are available in the manual.
Ex: NVram starting address is not available.
Iam porting on mips3k.

It may sound very dumb, but Iam stuck there.

Thanks

From nick@snowman.net  Mon Mar 19 19:42:03 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id TAA01000; Mon, 19 Mar 2001 19:42:03 +0100 (MET)
Received-Date: Mon, 19 Mar 2001 19:42:03 +0100 (MET)
From: nick@snowman.net
Received: from ns.snowman.net(63.80.4.34)
 via SMTP by guadalquivir.fnet.fr, id smtpd000998; Mon Mar 19 19:41:56 2001
Received: from localhost (nick@localhost)
	by ns.snowman.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id NAA01404;
	Mon, 19 Mar 2001 13:38:57 -0500
Date: Mon, 19 Mar 2001 13:38:57 -0500 (EST)
X-Sender: nick@ns
To: guru <guru@efftinc.com>
cc: Greeen-III <greeen@iii.org.tw>,
        LinuxEmbeddedMailList <linux-embedded@waste.org>,
        LinuxKernelMailList <linux-kernel@vger.kernel.org>,
        MipsMailList <linux-mips@fnet.fr>
Subject: Re: Please help
In-Reply-To: <3AB64E33.A062439B@efftinc.com>
Message-ID: <Pine.LNX.4.21.0103191338060.704-100000@ns>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Length: 835
Lines: 25

I would recommend looking at the list at linux-mips@oss.sgi.com.  I am
fairly sure there is an R3k port already being worked on.  I assume the
mips3k processor you refer to is the R3k (which is very similar to the
R2k)?
	Nick

On Mon, 19 Mar 2001, guru wrote:

> I have a fundamental question:
> 
> If I have to port LINUX on to new processor. How will I get address
> mapping of different devices. Some of them are available in the manual.
> Ex: NVram starting address is not available.
> Iam porting on mips3k.
> 
> It may sound very dumb, but Iam stuck there.
> 
> Thanks
> 
> -
> 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/
> 

From greeen@iii.org.tw  Thu Mar 22 15:06:33 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id PAA22365; Thu, 22 Mar 2001 15:06:33 +0100 (MET)
Received-Date: Thu, 22 Mar 2001 15:06:33 +0100 (MET)
Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw"
 via SMTP by guadalquivir.fnet.fr, id smtpd022363; Thu Mar 22 15:06:26 2001
Received: from [140.92.66.45] (helo=iiidns.iii.org.tw)
	by mta0.iii.org.tw with esmtp (Exim 3.16 #1)
	id 14feQn-000338-00; Wed, 21 Mar 2001 16:57:25 +0800
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f2L8vQt24853;
	Wed, 21 Mar 2001 16:57:26 +0800 (CST)
Message-ID: <000c01c0b1e5$3d278080$4c0c5c8c@trd.iii.org.tw>
From: "Greeen-III" <greeen@iii.org.tw>
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: r2300_switch.S and traps.c
Date: Wed, 21 Mar 2001 16:59:17 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0009_01C0B228.44284660"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 3155
Lines: 78

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C0B228.44284660
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi all,

I am in the pthread problem.
I guess the reason is context switch.
So I trace the code /arch/mips/kernel/traps.c and =
/arch/mips/kernel/r2300_switch.S.
I have some question want to ask you.

1. What condition the kernel will simulate the instruction "ll" and =
"sc"?  (In the traps.c)
2. What is the functional of the variable "ll_bit" ? (In the traps.c)
3. What situation does kernel call the resune ? (In the r2300_switch.S)
4. The traps.c is initialize IDT( interrupt descripter table ), Right?

                                                                         =
                           Green

------=_NextPart_000_0009_01C0B228.44284660
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Hi all,</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>I am in the pthread =
problem.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>I guess the reason is context =
switch.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>So I trace the code =
/arch/mips/kernel/traps.c and=20
/arch/mips/kernel/r2300_switch.S.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>I have some question want to =
ask you.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>1. What condition the kernel =
will simulate the instruction=20
"<STRONG><FONT color=3D#800080>ll</FONT></STRONG>" and "<STRONG><FONT=20
color=3D#800080>sc</FONT></STRONG>"?&nbsp; (In the traps.c)</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>2. What is the functional of =
the variable "<FONT=20
color=3D#800080><STRONG>ll_bit</STRONG></FONT>" ? (In the =
traps.c)</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>3. What situation does kernel =
call the resune ? (In the=20
r2300_switch.S)</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>4. The traps.c is initialize =
IDT( interrupt descripter=20
table ), Right?</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Green</FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01C0B228.44284660--

From raiko@niisi.msk.ru  Thu Mar 22 16:07:53 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id QAA22794; Thu, 22 Mar 2001 16:07:53 +0100 (MET)
Received-Date: Thu, 22 Mar 2001 16:07:53 +0100 (MET)
Received: from t111.niisi.ras.ru(193.232.173.111)
 via SMTP by guadalquivir.fnet.fr, id smtpd022791; Thu Mar 22 16:07:44 2001
Received: from t06.niisi.ras.ru (t06.niisi.ras.ru [193.232.173.6])
	by t111.niisi.ras.ru (8.9.1/8.9.1) with ESMTP id SAA04607;
	Thu, 22 Mar 2001 18:07:37 +0300
Received: (from uucp@localhost) by t06.niisi.ras.ru (8.7.6/8.7.3) with UUCP id SAA27781; Thu, 22 Mar 2001 18:05:18 +0300
Received: from niisi.msk.ru (t34 [193.232.173.34]) by niisi.msk.ru (8.8.8/8.8.8) with ESMTP id SAA05544; Thu, 22 Mar 2001 18:02:13 +0300 (MSK)
Message-ID: <3ABA17BC.16B4EC9F@niisi.msk.ru>
Date: Thu, 22 Mar 2001 18:18:20 +0300
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Organization: NIISI RAN
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en,ru
MIME-Version: 1.0
To: Greeen-III <greeen@iii.org.tw>
CC: MipsMailList <linux-mips@fnet.fr>
Subject: Re: r2300_switch.S and traps.c
References: <000c01c0b1e5$3d278080$4c0c5c8c@trd.iii.org.tw>
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit
Content-Length: 845
Lines: 34

> Greeen-III wrote:
> 
> Hi all,
> 
> I am in the pthread problem.
> I guess the reason is context switch.
> So I trace the code /arch/mips/kernel/traps.c and
> /arch/mips/kernel/r2300_switch.S.
> I have some question want to ask you.
> 
> 1. What condition the kernel will simulate the instruction "ll" and
> "sc"?  (In the traps.c)

The Reserved Instruction exception is occured and fault intruction has
ll or sc opcode.

> 2. What is the functional of the variable "ll_bit" ? (In the traps.c)

The sc emulation codemust know  by definition whether ll instruction has
been occured in the control sequence.

> 3. What situation does kernel call the resune ? (In the
> r2300_switch.S)

On context switch, it's implementation of switch_to.

> 4. The traps.c is initialize IDT( interrupt descripter table ), Right?
> 
> 

Sort of.

Regards,
Gleb.

From ralf@dea.waldorf-gmbh.de  Mon Mar 26 05:27:44 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id FAA23637; Mon, 26 Mar 2001 05:27:44 +0200 (MET DST)
Received-Date: Mon, 26 Mar 2001 05:27:44 +0200 (MET DST)
Received: from u-188-10.karlsruhe.ipdial.viaginterkom.de(62.180.10.188), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd023635; Mon Mar 26 05:27:41 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2PEsjQ21320;
	Sun, 25 Mar 2001 16:54:45 +0200
Date: Sun, 25 Mar 2001 16:54:44 +0200
From: Ralf Baechle <ralf@uni-koblenz.de>
To: jdunn@netscape.com (Jim Dunn)
Cc: linux-mips@fnet.fr, linux-dev@netscape.com
Subject: Re: NSPR porting to linux/mips
Message-ID: <20010325165444.A21305@bacchus.dhis.org>
References: <3ABA673F.BBC1D154@netscape.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3ABA673F.BBC1D154@netscape.com>; from jdunn@netscape.com on Thu, Mar 22, 2001 at 10:00:05PM +0100
X-Accept-Language: de,en,fr
Content-Length: 366
Lines: 11

On Thu, Mar 22, 2001 at 10:00:05PM +0100, Jim Dunn wrote:

> Has anyone out there done a port, or know the status of any
> work involving porting nspr (NetScape Portable Runtime) to
> linux-mips?

It's more than two years since then but at that time I had Mozilla and
therefore NSPR running on Linux/MIPS; I've contributed all my patches
back for inclusion.

  Ralf

From ralf@dea.waldorf-gmbh.de  Mon Mar 26 18:29:10 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id SAA29351; Mon, 26 Mar 2001 18:29:10 +0200 (MET DST)
Received-Date: Mon, 26 Mar 2001 18:29:10 +0200 (MET DST)
Received: from u-200-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.200), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpda29347; Mon Mar 26 18:29:05 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2QDZBG03601
	for linux-mips@fnet.fr; Mon, 26 Mar 2001 15:35:11 +0200
Date: Mon, 26 Mar 2001 15:35:11 +0200
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: [gallone@ing.unipi.it: I have a Sony NWS3260]
Message-ID: <20010326153511.B3467@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Length: 1811
Lines: 47

----- Forwarded message from Giuseppe Gallone <gallone@ing.unipi.it> -----

From: Giuseppe Gallone <gallone@ing.unipi.it>
Date: Mon, 26 Mar 2001 15:14:14 +0200 (MET DST)
To: linux-mips@fnet.fr
Subject: I have a Sony NWS3260

Following the home page of Linux/MIPS:

>Can I help?
>
>Sure! If you have a Mips box, please let us know. Eventually we find a
way to include your box in the target list. And we would of course
appreciate it, if you can spend some time into
>hacking kernel and/or user code. Please feel free to contact us at
linux-mips@fnet.fr!

I simply want to tell tou that I have a Mips box. More precisely, I have
an old Sony NWS3260 with R3000 processor and 16Mb RAM and 430Mb SCSI HD.
It is a little dream for me to see Linux running on this box...
At this time, I'm also able to boot the system from an Iomega ZIP100
SCSI cartridge where I prepared a minimal installation of the native
sony news-os (an SVR4 unix). Apart from dos floppies, I haven't still
found any way to make this box to read filesystems different from its
own (so I had to appropriately format the Zip cartridge), nor I can use
the network boot facilities it offers (it seems to use a proprietary
protocol). Anyway, the Sony News is networked with my x86-based linux
box, so it can exchange files with the world in a simple way.

I'm not so skilled in code hacking, and I cannot guarantee that I'll
have enough time to spend for make the little dream to came true, but
please feel free to try contacting me: I'll help if I'll be able to.
Bye,

G.Gallone

--
Giuseppe Gallone
INFM & Dipartimento Ingegneria Chimica, Chimica Industriale e Scienza dei
Materiali, Universita` degli Studi di Pisa -  via Diotisalvi, 2  -
I56126 PISA - Italy - tel.  +39 050511235 - fax  +39 050511266



----- End forwarded message -----

  Ralf

From ralf@dea.waldorf-gmbh.de  Mon Mar 26 18:29:10 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id SAA29350; Mon, 26 Mar 2001 18:29:10 +0200 (MET DST)
Received-Date: Mon, 26 Mar 2001 18:29:10 +0200 (MET DST)
Received: from u-200-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.200), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd029347; Mon Mar 26 18:29:02 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2QDasW03626
	for linux-mips@fnet.fr; Mon, 26 Mar 2001 15:36:54 +0200
Date: Mon, 26 Mar 2001 15:36:54 +0200
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: [jkonrad@fonts.de: MIPS]
Message-ID: <20010326153654.C3467@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Length: 743
Lines: 22

----- Forwarded message from Jay Konrad <jkonrad@fonts.de> -----

From: Jay Konrad <jkonrad@fonts.de>
Date: Mon, 26 Mar 2001 12:57:24 +0200 (MET DST)
To: linux-mips@fnet.fr
Subject: MIPS

Hi guys!

I just bought myself a SGI Indigo2 with an R8000 - I do like Linux a lot and use it on most of my Intel-based PCs, so naturally I would like to test it on this box as well. However, I would rate myself a beginner, though I 
am practicing hard :-) I was at Cebit in Germany last week, but the guys from SGI did not know shit, to tell the truth. 

Well, anyway, I will get some webspace soon, so naturally I would love to help you guys by opening up a mirror site. Just tell me what to do.

Yours,

Jay


----- End forwarded message -----

  Ralf

From ralf@dea.waldorf-gmbh.de  Mon Mar 26 19:46:59 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id TAA00651; Mon, 26 Mar 2001 19:46:59 +0200 (MET DST)
Received-Date: Mon, 26 Mar 2001 19:46:59 +0200 (MET DST)
Received: from u-200-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.200), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd000649; Mon Mar 26 19:46:56 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2QHkrH08280
	for linux-mips@fnet.fr; Mon, 26 Mar 2001 19:46:53 +0200
Date: Mon, 26 Mar 2001 19:46:53 +0200
From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mips@fnet.fr
Subject: [nazimk@ishoni.com: Need help.]
Message-ID: <20010326194653.A8261@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Accept-Language: de,en,fr
Content-Length: 494
Lines: 23

----- Forwarded message from "Nazim Khan" <nazimk@ishoni.com> -----

From: "Nazim Khan" <nazimk@ishoni.com>
Date: Thu, 22 Mar 2001 09:55:49 +0100 (MET)
To: <linux-mips@fnet.fr>
Subject: Need help.

Hi,

I am trying to support MIPS(non MMU) on uCLinux. As you guys have done lot
of work on
supporting MIPS on linux. Can you please guide us as what are the issues
involved and how do
we start. Any kind of input is welcome.

thanks and regards,
Nazim



----- End forwarded message -----

  Ralf

From rajesh.palani@philips.com  Wed Mar 28 21:50:53 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id VAA23663; Wed, 28 Mar 2001 21:50:53 +0200 (MET DST)
Received-Date: Wed, 28 Mar 2001 21:50:53 +0200 (MET DST)
From: rajesh.palani@philips.com
Received: from gw-us4.philips.com(63.114.235.90)
 via SMTP by guadalquivir.fnet.fr, id smtpd023661; Wed Mar 28 21:50:45 2001
Received: from smtprelay-us1.philips.com (localhost.philips.com [127.0.0.1])
          by gw-us4.philips.com with ESMTP id NAA26312;
          Wed, 28 Mar 2001 13:50:32 -0600 (CST)
          (envelope-from rajesh.palani@philips.com)
Received: from smtprelay-nam2.philips.com(167.81.233.16) by gw-us4.philips.com via mwrap (4.0a)
	id xma026310; Wed, 28 Mar 01 13:50:32 -0600
Received: from AMLMS01.DIAMOND.PHILIPS.COM (amlms01sv1.diamond.philips.com [161.88.79.213]) 
	by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id NAA29269; Wed, 28 Mar 2001 13:50:32 -0600 (CST)
Received: by AMLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi
          via AMEC id 0056910011132437; Wed, 28 Mar 2001 13:53:04 -0600
To: <linux-mips@oss.sgi.com>, <linux-mips@fnet.fr>
Subject: Problem with using modutils
Message-ID: <0056910011132437000002L172*@MHS>
Date: Wed, 28 Mar 2001 13:53:04 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; name="MEMO 03/28/01 13:50:07"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Length: 968
Lines: 28

Hi,

   I am trying to use insmod on a MIPS platform.  I try to install a si=
mple module & get the following errors:

   local symbol gcc2_compiled. with index 10 exceeds local_symtab_size =
10
   local symbol __gnu_compiled_c with index 11 exceeds local_symtab_siz=
e 10

   I use the following line for generating the object file:
   mipsel-linux-gcc -D__KERNEL__  -DMODULE -Wall -Wstrict-prototypes -O=
2 -fomit-frame-pointer  -G 0 -mno-abicalls -fno-pic -mcpu=3Dr3000 -mlon=
g-calls -mips1 -pipe  -c

   I am using modutils version 2.3.11.  We have tried both Debian and R=
edHat sources cross-compiled for MIPS with the following options:
CC=3Dmipsel-linux-gcc CFLAGS=3D"-I../linux/include -DMIPS" RANLIB=3Dmip=
sel-linux-ranlib AR=3Dmipsel-linux-ar ./configure  --disable-kerneld
--disable-compat-2-0 --enable-insmod-static --target=3Dmipsel-linux
However the problem still remains.

   Any pointers would be greatly appreciated.

   Best regards,

   Rajesh
=

From ralf@dea.waldorf-gmbh.de  Thu Mar 29 00:20:23 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id AAA24740; Thu, 29 Mar 2001 00:20:23 +0200 (MET DST)
Received-Date: Thu, 29 Mar 2001 00:20:23 +0200 (MET DST)
Received: from u-138-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.138), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd024736; Thu Mar 29 00:20:10 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2SMJVR04755;
	Thu, 29 Mar 2001 00:19:31 +0200
Date: Thu, 29 Mar 2001 00:19:31 +0200
From: Ralf Baechle <ralf@oss.sgi.com>
To: rajesh.palani@philips.com
Cc: <linux-mips@oss.sgi.com>, <linux-mips@fnet.fr>
Subject: Re: Problem with using modutils
Message-ID: <20010329001931.B4585@bacchus.dhis.org>
References: <0056910011132437000002L172*@MHS>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <0056910011132437000002L172*@MHS>; from rajesh.palani@philips.com on Wed, Mar 28, 2001 at 01:53:04PM -0600
X-Accept-Language: de,en,fr
Content-Length: 1260
Lines: 25

On Wed, Mar 28, 2001 at 01:53:04PM -0600, rajesh.palani@philips.com wrote:

>    I am trying to use insmod on a MIPS platform.  I try to install a simple module & get the following errors:
> 
>    local symbol gcc2_compiled. with index 10 exceeds local_symtab_size 10
>    local symbol __gnu_compiled_c with index 11 exceeds local_symtab_size 10

This is a gas bug which somebody just fixed.  As a workaround for the time
until we can deploy the fix please re-link modules with a command like
ld -r -o new.o broken.o.

>    I use the following line for generating the object file:
>    mipsel-linux-gcc -D__KERNEL__  -DMODULE -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer  -G 0 -mno-abicalls -fno-pic -mcpu=r3000 -mlong-calls -mips1 -pipe  -c

That's correct.

>    I am using modutils version 2.3.11.  We have tried both Debian and RedHat sources cross-compiled for MIPS with the following options:
> CC=mipsel-linux-gcc CFLAGS="-I../linux/include -DMIPS" RANLIB=mipsel-linux-ranlib AR=mipsel-linux-ar ./configure  --disable-kerneld
> --disable-compat-2-0 --enable-insmod-static --target=mipsel-linux
> However the problem still remains.

Please upgrade to the latest modutils from ftp.kernel.org; it has a bugfixes
which are important for MIPS.

  Ralf

From greeen@iii.org.tw  Thu Mar 29 11:47:19 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id LAA01877; Thu, 29 Mar 2001 11:47:19 +0200 (MET DST)
Received-Date: Thu, 29 Mar 2001 11:47:19 +0200 (MET DST)
Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw"
 via SMTP by guadalquivir.fnet.fr, id smtpd001875; Thu Mar 29 11:47:15 2001
Received: from [140.92.66.45] (helo=iiidns.iii.org.tw)
	by mta0.iii.org.tw with esmtp (Exim 3.16 #1)
	id 14iZ15-0007JA-00; Thu, 29 Mar 2001 17:46:55 +0800
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f2T9ktt02358;
	Thu, 29 Mar 2001 17:46:56 +0800 (CST)
Message-ID: <001301c0b833$736add00$4c0c5c8c@trd.iii.org.tw>
From: "Green" <greeen@iii.org.tw>
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "LinuxKernelMailList" <linux-kernel@vger.kernel.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: Pcmcia driver on Mips r39xx.
Date: Thu, 29 Mar 2001 17:34:25 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0010_01C0B876.7FB82480"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Length: 2743
Lines: 76

This is a multi-part message in MIME format.

------=_NextPart_000_0010_01C0B876.7FB82480
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi all,

I want to port pcmcia driver to my MIPS box.
How could I begin?

I find that there is a line in the /init/main.c such like the following:

#ifdef CONFIG_PCMCIA
 init_pcmcia_ds();  /* Do this last */
#endif

The init_pcmcia_ds() function is implemented at /drivers/pcmcia/ds.c.
Should I add a CONFIG_PCMCIA label to the .config file and enable this =
config ?

Which file should I trace and modify?

Any reply is appreciated.

Best regards,
Green

------=_NextPart_000_0010_01C0B876.7FB82480
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Hi all,</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>I want to port pcmcia driver to =
my MIPS box.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>How could I begin?</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>I find that there&nbsp;is a =
line in&nbsp;the=20
<STRONG><EM>/init/main.c</EM></STRONG> such like the =
following:</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9 color=3D#008080><STRONG>#ifdef=20
CONFIG_PCMCIA<BR>&nbsp;init_pcmcia_ds();&nbsp;&nbsp;/* Do this last=20
*/<BR>#endif</STRONG></FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9 =
color=3D#008080></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>The&nbsp;init_pcmcia_ds() =
function is implemented at=20
<STRONG><EM>/drivers/pcmcia/ds.c</EM></STRONG>.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Should I add a CONFIG_PCMCIA =
label to the=20
<EM><STRONG>.config</STRONG></EM> file and enable this config =
?</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Which file should I trace and =
modify?</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Any reply is =
appreciated.</FONT></DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT>&nbsp;</DIV>
<DIV><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Best regards,</FONT></DIV>
<DIV><FONT =
face=3D=B7s=B2=D3=A9=FA=C5=E9>Green</FONT></DIV></BODY></HTML>

------=_NextPart_000_0010_01C0B876.7FB82480--

From ralf@dea.waldorf-gmbh.de  Thu Mar 29 13:34:18 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id NAA02436; Thu, 29 Mar 2001 13:34:18 +0200 (MET DST)
Received-Date: Thu, 29 Mar 2001 13:34:18 +0200 (MET DST)
Received: from u-156-20.karlsruhe.ipdial.viaginterkom.de(62.180.20.156), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd002434; Thu Mar 29 13:34:06 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2TBWLr07566;
	Thu, 29 Mar 2001 13:32:21 +0200
Date: Thu, 29 Mar 2001 13:32:21 +0200
From: Ralf Baechle <ralf@uni-koblenz.de>
To: "Green" <greeen@iii.org.tw>
Cc: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "LinuxKernelMailList" <linux-kernel@vger.kernel.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: Re: Pcmcia driver on Mips r39xx.
Message-ID: <20010329133221.A1444@bacchus.dhis.org>
References: <001301c0b833$736add00$4c0c5c8c@trd.iii.org.tw>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <001301c0b833$736add00$4c0c5c8c@trd.iii.org.tw>; from greeen@iii.org.tw on Thu, Mar 29, 2001 at 05:34:25PM +0800
X-Accept-Language: de,en,fr
Content-Length: 7546
Lines: 227

On Thu, Mar 29, 2001 at 05:34:25PM +0800, Green wrote:
> From: "Green" <greeen@iii.org.tw>
> To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
>         "LinuxKernelMailList" <linux-kernel@vger.kernel.org>,
>         "MipsMailList" <linux-mips@fnet.fr>
> Subject: Pcmcia driver on Mips r39xx.
> Date: Thu, 29 Mar 2001 17:34:25 +0800
> 
> Hi all,
> 
> I want to port pcmcia driver to my MIPS box.
> How could I begin?
> 
> I find that there is a line in the /init/main.c such like the following:
> 
> #ifdef CONFIG_PCMCIA
>  init_pcmcia_ds();  /* Do this last */
> #endif
> 
> The init_pcmcia_ds() function is implemented at /drivers/pcmcia/ds.c.
> Should I add a CONFIG_PCMCIA label to the .config file and enable this config ?

This was a bug in our config.in which I just fixed.  Patch below and in
CVS.

  Ralf

Index: arch/mips/config.in
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/config.in,v
retrieving revision 1.97
diff -u -r1.97 config.in
--- arch/mips/config.in	2001/03/24 03:10:57	1.97
+++ arch/mips/config.in 2001/03/29 11:30:52   
@@ -261,8 +261,14 @@
 
 bool 'Networking support' CONFIG_NET
 
-if [ "$CONFIG_PCI" = "y" ]; then
-    source drivers/pci/Config.in
+source drivers/pci/Config.in
+
+bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG
+
+if [ "$CONFIG_HOTPLUG" = "y" ] ; then
+   source drivers/pcmcia/Config.in
+else
+   define_bool CONFIG_PCMCIA n
 fi
 
 bool 'System V IPC' CONFIG_SYSVIPC
Index: arch/mips/defconfig
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig,v
retrieving revision 1.78
diff -u -r1.78 defconfig
--- arch/mips/defconfig	2001/03/24 03:10:57	1.78
+++ arch/mips/defconfig 2001/03/29 11:30:54   
@@ -81,6 +81,8 @@
 CONFIG_BINFMT_ELF=y
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-atlas
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-atlas,v
retrieving revision 1.20
diff -u -r1.20 defconfig-atlas
--- arch/mips/defconfig-atlas	2001/03/24 03:10:57	1.20
+++ arch/mips/defconfig-atlas 2001/03/29 11:30:54   
@@ -76,6 +76,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 # CONFIG_PCI_NAMES is not set
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 # CONFIG_SYSCTL is not set
Index: arch/mips/defconfig-ddb5476
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-ddb5476,v
retrieving revision 1.20
diff -u -r1.20 defconfig-ddb5476
--- arch/mips/defconfig-ddb5476	2001/03/24 03:10:57	1.20
+++ arch/mips/defconfig-ddb5476 2001/03/29 11:30:54   
@@ -76,6 +76,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 # CONFIG_PCI_NAMES is not set
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-decstation
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-decstation,v
retrieving revision 1.42
diff -u -r1.42 defconfig-decstation
--- arch/mips/defconfig-decstation	2001/03/24 03:10:57	1.42
+++ arch/mips/defconfig-decstation 2001/03/29 11:30:54   
@@ -74,6 +74,8 @@
 CONFIG_BINFMT_ELF=y
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-ev64120
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-ev64120,v
retrieving revision 1.15
diff -u -r1.15 defconfig-ev64120
--- arch/mips/defconfig-ev64120	2001/03/24 03:10:57	1.15
+++ arch/mips/defconfig-ev64120 2001/03/29 11:30:54   
@@ -83,6 +83,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 # CONFIG_PCI_NAMES is not set
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-ev96100
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-ev96100,v
retrieving revision 1.20
diff -u -r1.20 defconfig-ev96100
--- arch/mips/defconfig-ev96100	2001/03/24 03:10:57	1.20
+++ arch/mips/defconfig-ev96100 2001/03/29 11:30:54   
@@ -79,6 +79,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 # CONFIG_PCI_NAMES is not set
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 # CONFIG_SYSVIPC is not set
 # CONFIG_BSD_PROCESS_ACCT is not set
 # CONFIG_SYSCTL is not set
Index: arch/mips/defconfig-ip22
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-ip22,v
retrieving revision 1.53
diff -u -r1.53 defconfig-ip22
--- arch/mips/defconfig-ip22	2001/03/24 03:10:57	1.53
+++ arch/mips/defconfig-ip22 2001/03/29 11:30:54   
@@ -81,6 +81,8 @@
 CONFIG_BINFMT_ELF=y
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-it8172
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-it8172,v
retrieving revision 1.4
diff -u -r1.4 defconfig-it8172
--- arch/mips/defconfig-it8172	2001/03/24 03:10:57	1.4
+++ arch/mips/defconfig-it8172 2001/03/29 11:30:56   
@@ -82,6 +82,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 CONFIG_PCI_NAMES=y
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 CONFIG_BSD_PROCESS_ACCT=y
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-malta
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-malta,v
retrieving revision 1.22
diff -u -r1.22 defconfig-malta
--- arch/mips/defconfig-malta	2001/03/24 03:10:57	1.22
+++ arch/mips/defconfig-malta 2001/03/29 11:30:56   
@@ -75,6 +75,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 # CONFIG_PCI_NAMES is not set
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 # CONFIG_SYSCTL is not set
Index: arch/mips/defconfig-ocelot
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-ocelot,v
retrieving revision 1.6
diff -u -r1.6 defconfig-ocelot
--- arch/mips/defconfig-ocelot	2001/03/24 03:10:57	1.6
+++ arch/mips/defconfig-ocelot 2001/03/29 11:30:56   
@@ -77,6 +77,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 CONFIG_PCI_NAMES=y
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 CONFIG_SYSVIPC=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y
Index: arch/mips/defconfig-rm200
===================================================================
RCS file: /home/pub/cvs/linux/arch/mips/defconfig-rm200,v
retrieving revision 1.36
diff -u -r1.36 defconfig-rm200
--- arch/mips/defconfig-rm200	2001/03/24 03:10:57	1.36
+++ arch/mips/defconfig-rm200 2001/03/29 11:30:56   
@@ -79,6 +79,8 @@
 # CONFIG_BINFMT_MISC is not set
 CONFIG_NET=y
 # CONFIG_PCI_NAMES is not set
+# CONFIG_HOTPLUG is not set
+# CONFIG_PCMCIA is not set
 # CONFIG_SYSVIPC is not set
 # CONFIG_BSD_PROCESS_ACCT is not set
 CONFIG_SYSCTL=y

