[U-Boot-Users] Re: Why exceptions are enabled before exception vector code is copied

Cedric VINCENT cedric.vincent at gmail.com
Wed Jul 6 15:50:47 CEST 2005

Here comes a patch to enable exceptions after exceptions vector code
is copied (i.e after relocation). I tested it with my board (PPC 405),
I also changed 440 and IOP480 target but without testing...

I run the MAKEALL script : there are no errors, warnings was not due
to this patch.

CHANGELOG : * cpu/ppc4xx/start.S : exceptions are enabled after relocation. 

About XMD, as I thought the spurious exception comes infinitely... So
there is no easy way to fix it. If you apply this patch (this is an
easy way to detect this spurious exception), you should add at the end
of doc/README.ml300 :
6. Warning
It was reported that XMD makes (sometimes) a spurious "Machine Check Exception".
When debugging, if you are sure that this exception doesn't come from
your system,
comment this line into cpu/ppc4xx/start.S :

addi	r7,r0,0x1000		/* set ME bit (Machine Exceptions) */

-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot_exception.diff
Type: application/octet-stream
Size: 2467 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050706/1b1e86c7/attachment.obj 

More information about the U-Boot mailing list