git: a07d4265095e - main - x86: Make AMD elvtX dump more compact.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Dec 2021 02:47:25 UTC
The branch main has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=a07d4265095ed473a3db5c3a998c699fa46dbe86
commit a07d4265095ed473a3db5c3a998c699fa46dbe86
Author: Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-05 02:45:20 +0000
Commit: Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-05 02:47:19 +0000
x86: Make AMD elvtX dump more compact.
MFC after: 2 weeks
---
sys/x86/x86/local_apic.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index 0def21687bbf..778760be1921 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -749,11 +749,12 @@ native_lapic_dump(const char* str)
printf(" cmci: 0x%08x\n", lapic_read32(LAPIC_LVT_CMCI));
extf = amd_read_ext_features();
if (extf != 0) {
- printf(" AMD ext features: 0x%08x\n", extf);
+ printf(" AMD ext features: 0x%08x", extf);
elvt_count = amd_read_elvt_count();
for (i = 0; i < elvt_count; i++)
- printf(" AMD elvt%d: 0x%08x\n", i,
+ printf("%s elvt%d: 0x%08x", (i % 4) ? "" : "\n ", i,
lapic_read32(LAPIC_EXT_LVT0 + i));
+ printf("\n");
}
}