AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070705140115.0d6a5173@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<maxim.kozlovsky@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E046A84DB@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 5 Jul 2007 14:01:18 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
Subject: Re: exception handlers
Message-ID: <20070705140118.307658f0@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E046A84DB@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E046A84BB@onstor-exch02.onstor.net>
	<20070705135052.6b701c78@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E046A84DB@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Should be pretty easy.  Fingers crossed.

On Thu, 5 Jul 2007 13:59:40 -0700 "Maxim Kozlovsky"
<maxim.kozlovsky@onstor.com> wrote:

> Here is the bsd code, src/sys/arch/pmonmips/pmonmips/machdep.c, line
> 539:
> 
> #ifdef BOBCAT
> /*
>  * XXX replace define with PROM environment variable.
>  * Since BOBCAT is a dual cpu environment, and the exception
>  * vectors are shared by cpu0 and cpu1, the PROM implements
>  * a jump table to the per processor exception table.
>  */
> #define OS_EXC_OFFSET	0x400
> #else
> #define OS_EXC_OFFSET	0
> #endif /* BOBCAT */
> 
> 	/*
> 	 * Copy down exception vector code.
> 	 */
> 	if (MipsTLBMissEnd - MipsTLBMiss > 0x80)
> 		panic("startup: TLB code too large");
> 	bcopy(MipsTLBMiss, (char *)(TLB_MISS_EXC_VEC + OS_EXC_OFFSET),
> 		MipsTLBMissEnd - MipsTLBMiss);
> #if 1
> 	bcopy(MipsException, (char *)(GEN_EXC_VEC + OS_EXC_OFFSET),
> 		MipsExceptionEnd - MipsException);
> #else
> 	bcopy(MipsException, MipsException,
> 		MipsExceptionEnd - MipsException);
> #endif
> 
> 	/*
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Thursday, July 05, 2007 1:51 PM
> To: Maxim Kozlovsky
> Subject: Re: exception handlers
> 
> On Thu, 5 Jul 2007 13:42:45 -0700 "Maxim Kozlovsky"
> <maxim.kozlovsky@onstor.com> wrote:
> 
> > Did you modify the Linux code to install the exception handlers into
> > different place like the openbsd does? I am trying to boot the FC
> > and it kind of hangs during the boot process. I suspect it is
> > because the exceptions are not handled correctly.
> 
> It's probably something, but I doubt it's the exception handlers.
> Might be memory or something else.  I need to know all the
> hows/whats/whens/wheres of the FC operation.
