linux-mips-fnet
[Top] [All Lists]

Re: boot code stuff

To: linux-mips@fnet.fr
Subject: Re: boot code stuff
From: paul@suede.sw.oz.au (Paul Antoine)
Date: Sat, 17 May 1997 18:27:19 +1000 (EST)
In-reply-to: <9705161805.AA01520@hilbert.numerik.math.uni-siegen.de> from "Michael Engel" at May 16, 97 08:05:36 pm
Organization: Softway Pty Ltd
Michael Engel writes:

> Have you already found (and fixed ;-)) the problem with the DS3100, Paul ?

Yep!  At least, I think so... 

In pmax_get_memory_size() in decstation.c, add:

        extern long except_vec3_generic;

to the definitions at the top, and:

   /* Copy down exception vector handler code */
   memcpy((void *)(KSEG0 + 0x80), &except_vec3_generic, 0x80);

just before the comment:

   /* Alter trap #7 (Data Bus Error) to our own routine */
 
In case you were wondering: I'd cleaned up some code in boot.S, and relied
on code in traps.c to do the copying, forgetting that we needed it for the
PMAX memory test.  Don't worry about the state things are in after this,
as it all gets tidied up in trap_init().

Paul
_______________________________________________________________________________
Paul M. Antoine,                                        Net: paul@sw.oz.au
Softway Pty Ltd                                         WWW: www.softway.com.au
PO Box 305, Strawberry Hills, NSW 2012, Australia       Tel: +61 2 9698 2322
Level 2, 79 Myrtle St, Chippendale, NSW 2008, Australia Fax: +61 2 9699 9174

"It is the lack of acceptance of diversity which threatens to 
 destroy society, NOT the free expression of it." - Me.

<Prev in Thread] Current Thread [Next in Thread>