Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102920968
D46277.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
616 B
Referenced Files
None
Subscribers
None
D46277.diff
View Options
diff --git a/sys/riscv/include/elf.h b/sys/riscv/include/elf.h
--- a/sys/riscv/include/elf.h
+++ b/sys/riscv/include/elf.h
@@ -82,5 +82,6 @@
#define HWCAP_ISA_C HWCAP_ISA_BIT('c')
#define HWCAP_ISA_G \
(HWCAP_ISA_I | HWCAP_ISA_M | HWCAP_ISA_A | HWCAP_ISA_F | HWCAP_ISA_D)
+#define HWCAP_ISA_B HWCAP_ISA_BIT('b')
#endif /* !_MACHINE_ELF_H_ */
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
@@ -245,6 +245,7 @@
while (i < len) {
switch(isa[i]) {
case 'a':
+ case 'b':
case 'c':
case 'd':
case 'f':
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 6:32 PM (19 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14719091
Default Alt Text
D46277.diff (616 B)
Attached To
Mode
D46277: riscv: Recognise B extension for AT_HWCAP
Attached
Detach File
Event Timeline
Log In to Comment