"Privilege violation" exception even though sr = 0x2600

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

"Privilege violation" exception even though sr = 0x2600

1,640 次查看
irenee
Contributor I
The 1st assembler instruction of an interrupt function writen in "C" is "strldsr". My MCF5329 processor generates an "privilege violation" each time this instruction is executed, even though I put the value 0x2600 into the register "sr" (see attachements). With sr = 0x2600 the processor runs in "supervisor mode".
Is there any other cause that can produce a "privilege violation" exception other than being in "user mode" ?
 
标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

652 次查看
irenee
Contributor I
I got some more information about this problem :
The C compiler (CW6.3) generates the assembler instruction STRLDSR #2700 at the begening of an interrupt routine.
If I put the same assembler instruction in an assemby code, I get the message :
"Instruction not legal for curent target processor" , which is MCF5329.
How does it come that the C-compiler generates the STRLDSR instruction and in the same small project, the same instruction is refused in an assembly file ?
0 项奖励
回复

652 次查看
CrasyCat
Specialist III
Hello
This looks pretty much like a compiler issue.
 
You need to submit a service request  for that.
 
To log the issue please go to following URL:
    http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&tid=FSH
and click on "Submit a service request"
 
CrasyCat
0 项奖励
回复