[RTEMS Project] #2204: mcf5235 has invalid code in start up

RTEMS trac trac at rtems.org
Mon Dec 1 02:51:33 UTC 2014


#2204: mcf5235 has invalid code in start up
---------------------+--------------------------
 Reporter:  chrisj   |      Owner:
     Type:  defect   |     Status:  new
 Priority:  highest  |  Milestone:  4.11
Component:  bsps     |    Version:  4.11
 Severity:  blocker  |   Keywords:  bsp coldfire
---------------------+--------------------------
 The mcf5235 crashes on boot with:

 dBUG> TRAP #7
 PC: 000442F2 SR: 2704 [t.Sm.111...xnZvc]
 An: 40000000 00006372 FBF7B9E5 F75F5FF7 00006286 F6F5FBFF 00006276
 00006272
 Dn: 001F1980 00000000 00000019 B75FFEFC FFFFFDCF FFB7AF5F DE5F5FC7
 D9BBFDFE
 000442F2: 0000                 DC.W      0x0000

 Inspection of the code with objdump shows Init5235 code is:

 000442b8 <Init5235>:
    442b8:       598f            subql #4,%sp
    442ba:       303c 3fff       movew #16383,%d0
    442be:       4297            clrl %sp@
    442c0:       33c0 4010 0048  movew %d0,40100048 <__IPSBAR+0x100048>
    442c6:       70e1            moveq #-31,%d0
    442c8:       13c0 4010 0040  moveb %d0,40100040 <__IPSBAR+0x100040>
    442ce:       70e0            moveq #-32,%d0
    442d0:       33c0 4000 0080  movew %d0,40000080 <__IPSBAR+0x80>
    442d6:       203c 001f 0001  movel #2031617,%d0
    442dc:       23c0 4000 0084  movel %d0,40000084 <__IPSBAR+0x84>
    442e2:       303c 1980       movew #6528,%d0
    442e6:       33c0 4000 008a  movew %d0,4000008a <__IPSBAR+0x8a>
    442ec:       42b8 0000       clrl 0 <HeapSize>
    442f0:       4e47            trap #7
         ...

 which is wrong. It looks like something in the compiler has changes and it
 could the RTEMS 'm68k_set_vbr'. The .i file shows this as:

  do { __asm__ volatile ( "movec   %0,%%vbr " : : "r" (0)); _VBR = (void
 *)0; } while(0);

 and that is generating a .s of:

          clr.l 0.w
         trap #7

 which is wrong. It is not clear what has change and what has broken with
 this BSP or it is the tools that are broken.

--
Ticket URL: <http://devel.rtems.org/ticket/2204>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list