Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Invalid opcode exception error for HVC instruction
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
4561 views
Users
0 members are here
Options
Share
More actions
Related
How was your experience today?
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
Invalid opcode exception error for HVC instruction
Nicola Johnsen
over 12 years ago
Note: This was originally posted on 9th November 2012 at
http://forums.arm.com
Hi I'm developing a UEFI boot loader that can run a hypervisor. I've developed some code that initializes CPUs and then transitions from monitor mode into non-secure hyp mode. I've set up HVBAR etc but when I then call the hvc #0 assembly instruction, the runtime (UEFI tianocore on ARM Fast model simulator) reports an Invalid Opcode exception. I wonder what could be the reason for this exception? I'm using a Cortex-A15 so the instruction should be valid. I've also set SCE.HCE to 1 so the hvc instruction should be available in non-secure monitor mode. Is there anything else I'm missing here? I've already asked for help from the UEFI people but didn't get any response so I'm trying a different audience.
Cheers.
0
Quote