Subject: PB520 status?
To: None <port-mac68k@NetBSD.ORG>
From: Peter Kohler <kohler@ife.ee.ethz.ch>
List: port-mac68k
Date: 06/11/1996 10:38:29
Hi everyone!

A friend of mine is *very* intrested to get NetBSD/mac68k running on his
PowerBook 520c. I was very excited seeing Takashi Hamada distributing a
kernel for the 500PBs. However, people seemed to have difficulties to 
run it on other models than the 550c:

Nicholas Riley <nriley@tiac.net>:

>However doing anything but running "sh" fails with Illegal Instruction.  It
>won't go out of single-user mode.  I assume that's because everything tries
>to execute a FPU instruction.

That was exactly the same that happend as I tried to run it...

Ignatios Souvatzis proposed a change in the FPU-emulation code:

>Hello,
>     
>when checking for things to do for 68060 support integration, I saw
>that in each and every m68k port (checked today after cvs update'ing)
>the following piece of code is found in every locore.s:
>
>_fpfault:
>#ifdef FPCOPROC
>        clrl    sp@-            | stack adjust count
>        moveml  #0xFFFF,sp@-    | save user registers
....


And Allan Briggs points in the same direction:

>The '040 is a different processor from the '030 and there may be some
>differences or problems in the code gluing the exceptions to the
>FPE and/or FPSP.

My question: Has anyone managed to get NetBSD/mac68k running on a FPU-less
Powerbook 5x0? 

				Peter

+------------------------------------------+--------------------------------+
| Peter Kohler                             | Phone:  (+41) 1 632 68 69      |
| Swiss Federal Institute of Technology    |   FAX:  (+41) 1 632 12 10      |
| Electronics Laboratory ETZ H64           |                                |
| Gloriastrasse 35                         | Email:  kohler@ife.ee.ethz.ch  |
|                                          |                                |
| CH-8092 Zurich                           |                                |
+------------------------------------------+--------------------------------+