Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
can't read CPSR correctly
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
2859 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
can't read CPSR correctly
arnina
over 12 years ago
Note: This was originally posted on 15th October 2009 at
http://forums.arm.com
hello,
I write the following codes to determine the mode in which the processor(Xscale) operates:
int x;
asm volatile ("mrs %0, cpsr"
:"=r"(x)
);
printf("cpsr:%x\n", x);
however, the result is:
cpsr:20000013
it doesn't seem to mean any mode, so what's going on?
Parents
arnina
over 12 years ago
Note: This was originally posted on 21st October 2009 at
http://forums.arm.com
thks.By the way, I've done another test after that, and I find the difference between CPSR and SPSR:
cpsr:60000013, spsr:600000d3
It means SPSR with IRQ and FIQ disabled.
In which circumstance will it happen?
Cancel
Vote up
0
Vote down
Cancel
Reply
arnina
over 12 years ago
Note: This was originally posted on 21st October 2009 at
http://forums.arm.com
thks.By the way, I've done another test after that, and I find the difference between CPSR and SPSR:
cpsr:60000013, spsr:600000d3
It means SPSR with IRQ and FIQ disabled.
In which circumstance will it happen?
Cancel
Vote up
0
Vote down
Cancel
Children
No data