How to trigger data storage exception

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to trigger data storage exception

660 次查看
Santhoshraj
Contributor I

Hi,

"How do I trigger a data trigger based on the conditions shown in this screenshot?"

Processor:mpc5777c 

Tool:adamulti

Thank you

1000036993.jpg

 

1000036992.jpg

0 项奖励
回复
2 回复数

623 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

I just tested it and I achieved Data Storage Interrupt (IVOR2) by MMU setting (in my configuration I have set user permission for NOT PERMITTED for EBI space i.e. 0x2000_0000), setting Problem State (PR) bit in the Machine State Register (MSR) to enable user mode and then attempting to write this address 0x2000_0000 and that’s it

davidtosenovjan_0-1742404326243.png

 

Code triggering the exception:

e_lis  r30,0x0200

e_or2i r30,0xD000

mtmsr r30

e_lis r30,0x2000

e_or2i r30,0x0000

e_lis    r31,0xcafe

e_or2i   r31,0xbeef

e_stw   r31,0(r30)

 

MMU TLB2 init code changed changed following way:

#TLB2 = external bus @ 0x2000_0000, VLE

    e_lis   r3,0x1002

    mtspr   mas0,r3

    e_lis   r3,0xC000

    e_or2i  r3,0x0700

    mtspr   mas1,r3

    e_lis   r3,0x2000

    e_or2i  r3,0x0020

    mtspr   mas2,r3

    e_lis   r3,0x0000

    #e_or2i  r3,0x003F # user mode not permitted

    e_or2i  r3,0x0015

    mtspr   mas3,r3

    tlbwe

0 项奖励
回复

633 次查看
Santhoshraj
Contributor I
Any update for above question
0 项奖励
回复