diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-05-07 15:12:37 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-05-08 11:01:49 +0100 |
commit | 64839b0f295dfa18ffde1b05da03bc0ff1dabd58 (patch) | |
tree | df1b6243c6748d28e959d3cccf4573031327f153 /xen/include/asm-arm/arm32 | |
parent | a780f750d7fc35ec23b7771516fe11a390d0aa07 (diff) | |
download | xen-64839b0f295dfa18ffde1b05da03bc0ff1dabd58.tar.gz xen-64839b0f295dfa18ffde1b05da03bc0ff1dabd58.tar.bz2 xen-64839b0f295dfa18ffde1b05da03bc0ff1dabd58.zip |
xen/arm: trap SMC instructions and inject an UND exception
Currently only handles 32 bit guests. The 64-bit exception model is
considerably different.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen/include/asm-arm/arm32')
-rw-r--r-- | xen/include/asm-arm/arm32/processor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/include/asm-arm/arm32/processor.h b/xen/include/asm-arm/arm32/processor.h index cd79170544..d26fc85645 100644 --- a/xen/include/asm-arm/arm32/processor.h +++ b/xen/include/asm-arm/arm32/processor.h @@ -31,7 +31,9 @@ struct cpu_user_regs uint32_t lr_usr; }; - uint32_t pc; /* Return IP */ + union { /* Return IP, pc32 is used to allow code to be common with 64-bit */ + uint32_t pc, pc32; + }; uint32_t cpsr; /* Return mode */ uint32_t pad0; /* Doubleword-align the kernel half of the frame */ |