[compiler-rt] 96b1ae8 - [compiler-rt][RISCV][NFC] Add link to kernel documenation on hwprobe interface

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 02:39:39 PDT 2024


Author: Alex Bradbury
Date: 2024-07-30T10:37:55+01:00
New Revision: 96b1ae8927a411ef691a8843dc5add156581b1c0

URL: https://github.com/llvm/llvm-project/commit/96b1ae8927a411ef691a8843dc5add156581b1c0
DIFF: https://github.com/llvm/llvm-project/commit/96b1ae8927a411ef691a8843dc5add156581b1c0.diff

LOG: [compiler-rt][RISCV][NFC] Add link to kernel documenation on hwprobe interface

Makes it a little easier for future reviewers/maintainers.

Added: 
    

Modified: 
    compiler-rt/lib/builtins/cpu_model/riscv.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/cpu_model/riscv.c b/compiler-rt/lib/builtins/cpu_model/riscv.c
index 145954e704433..92931fae64fbf 100644
--- a/compiler-rt/lib/builtins/cpu_model/riscv.c
+++ b/compiler-rt/lib/builtins/cpu_model/riscv.c
@@ -108,6 +108,9 @@ struct {
 
 #if defined(__linux__)
 
+// The RISC-V hwprobe interface is documented here:
+// <https://docs.kernel.org/arch/riscv/hwprobe.html>.
+
 static long syscall_impl_5_args(long number, long arg1, long arg2, long arg3,
                                 long arg4, long arg5) {
   register long a7 __asm__("a7") = number;


        


More information about the llvm-commits mailing list