Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Feb 2026 17:25:25 +0000
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3b0b6aa2cd05 - main - arm64: Panic if the ID register isn't known
Message-ID:  <698a1885.24802.27a18a9e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=3b0b6aa2cd05b516ecf4b72f9a3c2aadddf3c94e

commit 3b0b6aa2cd05b516ecf4b72f9a3c2aadddf3c94e
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2026-02-09 17:24:27 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-02-09 17:24:27 +0000

    arm64: Panic if the ID register isn't known
    
    This will allow for callers to be simplified & not need to check the
    return status.
    
    Keep the return type for now so this can be MFCd without breaking the
    KBI.
    
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D55104
---
 sys/arm64/arm64/identcpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c
index 7f89098cc840..a1e7a43977f0 100644
--- a/sys/arm64/arm64/identcpu.c
+++ b/sys/arm64/arm64/identcpu.c
@@ -2526,7 +2526,7 @@ get_kernel_reg_iss(u_int iss, uint64_t *val)
 		}
 	}
 
-	return (false);
+	panic("%s: Invalid register %x", __func__, iss);
 }
 
 /*
@@ -2553,7 +2553,7 @@ get_kernel_reg_iss_masked(u_int iss, uint64_t *valp, uint64_t mask)
 		}
 	}
 
-	return (false);
+	panic("%s: Invalid register %x", __func__, iss);
 }
 
 bool


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698a1885.24802.27a18a9e>