Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2026 15:00:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 294468] x86/cputypes.h:57:21: error: expected register here
Message-ID:  <bug-294468-227-zdM9gYAbbF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294468-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294468

--- Comment #3 from Dan Kotowski <dan.kotowski@a9development.com> ---
(In reply to ShengYi Hung from comment #2)
Should this work?

diff --git a/sys/x86/include/cputypes.h b/sys/x86/include/cputypes.h
index ed26304a89ac..eaafa3f65b30 100644
--- a/sys/x86/include/cputypes.h
+++ b/sys/x86/include/cputypes.h
@@ -54,7 +54,9 @@
 #define CPU_AMD_UNKNOWN                0xffffffff

 #ifdef _KERNEL
+#ifndef _LOCORE
 u_int  ident_zen_cpu(void);
 #endif
+#endif

 #endif /* !_X86_CPUTYPES_H_ */

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294468-227-zdM9gYAbbF>