git: 895eeb49239e - main - powerpc/loader: Add CAS support for older CPUs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Jan 2026 18:59:54 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=895eeb49239eae947742bc2501836cc774d3467a
commit 895eeb49239eae947742bc2501836cc774d3467a
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2026-01-17 18:55:50 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2026-01-17 18:59:43 +0000
powerpc/loader: Add CAS support for older CPUs
QEMU creates a "ibm,arch-vec-5-platform-support" property for all
pseries emulations. Add POWER7 and POWER6 to the CAS list, more can be
added later as needed/desired.
MFC after: 1 week
---
stand/powerpc/ofw/cas.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/stand/powerpc/ofw/cas.c b/stand/powerpc/ofw/cas.c
index 45fd4d8d567f..af1497e98119 100644
--- a/stand/powerpc/ofw/cas.c
+++ b/stand/powerpc/ofw/cas.c
@@ -36,6 +36,9 @@
#endif
/* PVR */
+#define PVR_CPU_P6 0x003e0000
+#define PVR_CPU_P7 0x003f0000
+#define PVR_CPU_P7PLUS 0x004a0000
#define PVR_CPU_P8E 0x004b0000
#define PVR_CPU_P8NVL 0x004c0000
#define PVR_CPU_P8 0x004d0000
@@ -134,6 +137,9 @@ static struct ibm_arch_vec {
struct opt_vec5 vec5;
} __packed ibm_arch_vec = {
/* pvr_list */ {
+ { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P6) },
+ { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P7) },
+ { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P7PLUS) },
{ htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8) },
{ htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8E) },
{ htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8NVL) },