Page MenuHomeFreeBSD

powerpc64: Print current MSR on printtrap()
ClosedPublic

Authored by breno.leitao_gmail.com on Mar 6 2018, 8:45 PM.
Tags
None
Referenced Files
F142818836: D14600.diff
Fri, Jan 23, 9:49 PM
Unknown Object (File)
Wed, Jan 14, 1:45 AM
Unknown Object (File)
Tue, Jan 13, 11:51 AM
Unknown Object (File)
Tue, Jan 13, 3:43 AM
Unknown Object (File)
Sun, Dec 28, 1:21 AM
Unknown Object (File)
Dec 24 2025, 9:41 PM
Unknown Object (File)
Dec 20 2025, 10:51 PM
Unknown Object (File)
Dec 10 2025, 9:20 AM
Subscribers

Details

Summary

Print current MSR on printtrap(). Currently, printtrap just prints srr1, which
contains part of the MSR prior to the exception. I find useful to dump the
current value of the MSR, since it changes when there is an interruption.

With this patch, this is the new printtap model:

handled user trap:

exception       = 0x700 (program)
srr0            = 0x100008a0 (0x100008a0)
srr1            = 0x800000000002f032
current msr     = 0x8000000000009032
lr              = 0x1000089c (0x1000089c)
curthread       = 0x7a50000
       pid = 714, comm = ttrap2

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15398
Build 15448: arc lint + arc unit