Page MenuHomeFreeBSD

D39812.diff
No OneTemporary

D39812.diff

diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c
--- a/sys/riscv/riscv/identcpu.c
+++ b/sys/riscv/riscv/identcpu.c
@@ -120,7 +120,7 @@
#define ISA_PREFIX_LEN (sizeof(ISA_PREFIX) - 1)
static __inline int
-parse_ext_s(char *isa, int idx, int len)
+parse_ext_s(struct cpu_desc *desc __unused, char *isa, int idx, int len)
{
/*
* Proceed to the next multi-letter extension or the end of the
@@ -136,7 +136,7 @@
}
static __inline int
-parse_ext_x(char *isa, int idx, int len)
+parse_ext_x(struct cpu_desc *desc __unused, char *isa, int idx, int len)
{
/*
* Proceed to the next multi-letter extension or the end of the
@@ -150,7 +150,7 @@
}
static __inline int
-parse_ext_z(char *isa, int idx, int len)
+parse_ext_z(struct cpu_desc *desc __unused, char *isa, int idx, int len)
{
/*
* Proceed to the next multi-letter extension or the end of the
@@ -189,7 +189,7 @@
* Parse the ISA string, building up the set of HWCAP bits as they are found.
*/
static void
-parse_riscv_isa(char *isa, int len, u_long *hwcapp)
+parse_riscv_isa(struct cpu_desc *desc, char *isa, int len, u_long *hwcapp)
{
u_long hwcap;
int i;
@@ -228,20 +228,20 @@
/*
* Supervisor-level extension namespace.
*/
- i = parse_ext_s(isa, i, len);
+ i = parse_ext_s(desc, isa, i, len);
break;
case 'x':
/*
* Custom extension namespace. For now, we ignore
* these.
*/
- i = parse_ext_x(isa, i, len);
+ i = parse_ext_x(desc, isa, i, len);
break;
case 'z':
/*
* Multi-letter standard extension namespace.
*/
- i = parse_ext_z(isa, i, len);
+ i = parse_ext_z(desc, isa, i, len);
break;
case '_':
i++;
@@ -310,7 +310,7 @@
*/
for (int i = 0; i < len; i++)
isa[i] = tolower(isa[i]);
- parse_riscv_isa(isa, len, &hwcap);
+ parse_riscv_isa(desc, isa, len, &hwcap);
if (elf_hwcap != 0)
elf_hwcap &= hwcap;

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 3, 10:26 PM (22 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13491972
Default Alt Text
D39812.diff (1 KB)

Event Timeline