Article [#5108] when mpu is on, jump to zero works.

[#5108] when mpu is on, jump to zero works.

Submitted By: Robin Getz

Open Date

2009-05-05 12:59:28     Close Date

2009-05-05 13:15:00

Priority:

Medium     Assignee:

Robin Getz

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

trunk

App binary format:

FLAT     

Summary: when mpu is on, jump to zero works.

Details:

the code:

void jump_to_zero(void)

{

        int (*foo)(void);

        int i;

        i = 0x0;

        foo = (void *)i;

        (*foo)();

}

causes:

Hardware Trace:

   0 Target : <0x00004d08> { _trap_c + 0x0 }

     Source : <0xffa00616> { _exception_to_level5 + 0x9e } CALL pcrel

   1 Target : <0xffa00578> { _exception_to_level5 + 0x0 }

     Source : <0xffa0045e> { _bfin_return_from_exception + 0x2a } RTX

   2 Target : <0xffa00434> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa004c6> { _ex_trap_c + 0x46 } JUMP.S

   3 Target : <0xffa00480> { _ex_trap_c + 0x0 }

     Source : <0xffa006e0> { _trap + 0x58 } JUMP (P4)

   4 Target : <0xffa00688> { _trap + 0x0 }

     Source : <0x00000012> /* Maybe null pointer? */

   5 Target : <0x00000000> { _do_one_initcall + 0xfffff000 }

     Source : <0x00d202ce> [ traps_test + 0x28e ] JUMP (P2)

   6 Target : <0x00d202c4> [ traps_test + 0x284 ]

     Source : <0x00d205a8> [ traps_test + 0x568 ] CALL (P2)

   7 Target : <0x00d205a6> [ traps_test + 0x566 ]

since:

root:/> cat /proc/cplbinfo/cpu0/icplb

ICPLBs are enabled: 0x7

Index   Address         Data    Size    U/RD    U/WR    S/WR    Switch

0       0x00000000      01004   1K      Y       N       N       N

1       0x00000000      31205   4M      Y       N       N       N

LSB data should be set (valid bit).

-Robin

Follow-ups

--- Robin Getz                                               2009-05-05 13:15:00

Fixed on trunk.

-Robin

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.