aboutsummaryrefslogtreecommitdiff
path: root/include/stack.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-01-08 00:04:17 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-02-12 15:08:17 +1100
commit9c58bbd720b73b9c9c3bf9e86797077f053a9eb3 (patch)
tree1b04f4adb8a4dc0b2ea7179624359346fd1b0ab0 /include/stack.h
parent9e075d75274c50da4135c55afccc9f6d24dd2cfe (diff)
downloadskiboot-9c58bbd720b73b9c9c3bf9e86797077f053a9eb3.zip
skiboot-9c58bbd720b73b9c9c3bf9e86797077f053a9eb3.tar.gz
skiboot-9c58bbd720b73b9c9c3bf9e86797077f053a9eb3.tar.bz2
core/exceptions: save current MSR in exception frame
Save and print the MSR of the interrupt context. This can be derived from the interrupt type, SRR1, and other system register settings. But it can be useful to quickly verify what's happening. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/stack.h')
-rw-r--r--include/stack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stack.h b/include/stack.h
index a41a4a9..7578cc3 100644
--- a/include/stack.h
+++ b/include/stack.h
@@ -98,6 +98,7 @@ struct stack_frame {
uint64_t ctr;
uint64_t lr;
uint64_t pc;
+ uint64_t msr;
uint64_t cfar;
uint64_t srr0;
uint64_t srr1;