"Privilege violation" exception even though sr = 0x2600

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"Privilege violation" exception even though sr = 0x2600

1,433 Views
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" ?
 
Labels (1)
0 Kudos
2 Replies

445 Views
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 Kudos

445 Views
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 Kudos