===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
opensbi-0.8/Makefile-73-# Find library version
opensbi-0.8/Makefile:74:OPENSBI_VERSION_MAJOR=`grep "define OPENSBI_VERSION_MAJOR" $(include_dir)/sbi/sbi_version.h | sed 's/.*MAJOR.*\([0-9][0-9]*\)/\1/'`
opensbi-0.8/Makefile:75:OPENSBI_VERSION_MINOR=`grep "define OPENSBI_VERSION_MINOR" $(include_dir)/sbi/sbi_version.h | sed 's/.*MINOR.*\([0-9][0-9]*\)/\1/'`
opensbi-0.8/Makefile-76-OPENSBI_VERSION_GIT=$(shell if [ -d $(src_dir)/.git ]; then git describe 2> /dev/null; fi)
##############################################
opensbi-0.8/Makefile-95-# Guess the compillers xlen
opensbi-0.8/Makefile:96:OPENSBI_CC_XLEN := $(shell TMP=`$(CC) -dumpmachine | sed 's/riscv\([0-9][0-9]\).*/\1/'`; echo $${TMP})
opensbi-0.8/Makefile-97-
##############################################
opensbi-0.8/Makefile-234-endef
opensbi-0.8/Makefile:235:merge_objs = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-236-	     echo " MERGE     $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-237-	     $(LD) $(MERGEFLAGS) $(2) -o $(1)
opensbi-0.8/Makefile:238:merge_deps = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-239-	     echo " MERGE-DEP $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-240-	     cat $(2) > $(1)
opensbi-0.8/Makefile:241:copy_file =  $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-242-	     echo " COPY      $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-243-	     cp -f $(2) $(1)
opensbi-0.8/Makefile:244:inst_file =  $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-245-	     echo " INSTALL   $(subst $(install_root_dir)/,,$(1))"; \
##############################################
opensbi-0.8/Makefile-249-	     for file in $(4) ; do \
opensbi-0.8/Makefile:250:	     rel_file=`echo $$file | sed -e 's@$(2)/$(subst $(install_firmware_path),platform,$(3))@@'`; \
opensbi-0.8/Makefile:251:	     dest_file=$(1)"/"$(3)"/"`echo $$rel_file`; \
opensbi-0.8/Makefile:252:	     dest_dir=`dirname $$dest_file`; \
opensbi-0.8/Makefile:253:	     echo " INSTALL   "$(3)"/"`echo $$rel_file`; \
opensbi-0.8/Makefile-254-	     mkdir -p $$dest_dir; \
##############################################
opensbi-0.8/Makefile-260-	     cp -rf $(2) $(1)
opensbi-0.8/Makefile:261:compile_cpp = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-262-	     echo " CPP       $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-263-	     $(CPP) $(CPPFLAGS) -x c $(2) | grep -v "\#" > $(1)
opensbi-0.8/Makefile:264:compile_cc_dep = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-265-	     echo " CC-DEP    $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile:266:	     printf %s `dirname $(1)`/  > $(1) && \
opensbi-0.8/Makefile-267-	     $(CC) $(CFLAGS) $(call dynamic_flags,$(1),$(2))   \
opensbi-0.8/Makefile-268-	       -MM $(2) >> $(1) || rm -f $(1)
opensbi-0.8/Makefile:269:compile_cc = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-270-	     echo " CC        $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-271-	     $(CC) $(CFLAGS) $(call dynamic_flags,$(1),$(2)) -c $(2) -o $(1)
opensbi-0.8/Makefile:272:compile_as_dep = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-273-	     echo " AS-DEP    $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile:274:	     printf %s `dirname $(1)`/ > $(1) && \
opensbi-0.8/Makefile-275-	     $(AS) $(ASFLAGS) $(call dynamic_flags,$(1),$(2)) \
opensbi-0.8/Makefile-276-	       -MM $(2) >> $(1) || rm -f $(1)
opensbi-0.8/Makefile:277:compile_as = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-278-	     echo " AS        $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-279-	     $(AS) $(ASFLAGS) $(call dynamic_flags,$(1),$(2)) -c $(2) -o $(1)
opensbi-0.8/Makefile:280:compile_elf = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-281-	     echo " ELF       $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-282-	     $(CC) $(CFLAGS) $(3) $(ELFFLAGS) -Wl,-T$(2) -o $(1)
opensbi-0.8/Makefile:283:compile_ar = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-284-	     echo " AR        $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-285-	     $(AR) $(ARFLAGS) $(1) $(2)
opensbi-0.8/Makefile:286:compile_objcopy = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-287-	     echo " OBJCOPY   $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-288-	     $(OBJCOPY) -S -O binary $(2) $(1)
opensbi-0.8/Makefile:289:compile_dts = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-290-	     echo " DTC       $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile:291:	     $(CPP) $(DTSCPPFLAGS) $(2) | $(DTC) -O dtb -i `dirname $(2)` -o $(1)
opensbi-0.8/Makefile:292:compile_d2c = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-293-	     echo " D2C       $(subst $(build_dir)/,,$(1))"; \
opensbi-0.8/Makefile-294-	     $(src_dir)/scripts/d2c.sh -i $(4) -a $(3) -p $(2) > $(1)
opensbi-0.8/Makefile:295:compile_gen_dep = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
opensbi-0.8/Makefile-296-	     echo " GEN-DEP   $(subst $(build_dir)/,,$(1))"; \
##############################################
opensbi-0.8/firmware/payloads/test_main.c-17-		register unsigned long a7 asm("a7") = (unsigned long)(__num); \
opensbi-0.8/firmware/payloads/test_main.c:18:		asm volatile("ecall"                                          \
opensbi-0.8/firmware/payloads/test_main.c-19-			     : "+r"(a0)                                       \
##############################################
opensbi-0.8/include/sbi/riscv_barrier.h-39-/* CPU relax for busy loop */
opensbi-0.8/include/sbi/riscv_barrier.h:40:#define cpu_relax()		asm volatile ("" : : : "memory")
opensbi-0.8/include/sbi/riscv_barrier.h-41-
##############################################
opensbi-0.8/include/sbi/riscv_fp.h-37-		ulong tmp;                                                                                  \
opensbi-0.8/include/sbi/riscv_fp.h:38:		asm volatile(                                                                               \
opensbi-0.8/include/sbi/riscv_fp.h-39-			"1: auipc %0, %%pcrel_hi(put_f32_reg); add %0, %0, %2; jalr t0, %0, %%pcrel_lo(1b)" \
##############################################
opensbi-0.8/include/sbi/riscv_fp.h-60-		ulong tmp;                                                                                  \
opensbi-0.8/include/sbi/riscv_fp.h:61:		asm volatile(                                                                               \
opensbi-0.8/include/sbi/riscv_fp.h-62-			"1: auipc %0, %%pcrel_hi(put_f64_reg); add %0, %0, %2; jalr t0, %0, %%pcrel_lo(1b)" \
##############################################
opensbi-0.8/include/sbi/riscv_io.h-17-{
opensbi-0.8/include/sbi/riscv_io.h:18:	asm volatile("sb %0, 0(%1)" : : "r"(val), "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-19-}
##############################################
opensbi-0.8/include/sbi/riscv_io.h-22-{
opensbi-0.8/include/sbi/riscv_io.h:23:	asm volatile("sh %0, 0(%1)" : : "r"(val), "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-24-}
##############################################
opensbi-0.8/include/sbi/riscv_io.h-27-{
opensbi-0.8/include/sbi/riscv_io.h:28:	asm volatile("sw %0, 0(%1)" : : "r"(val), "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-29-}
##############################################
opensbi-0.8/include/sbi/riscv_io.h-33-{
opensbi-0.8/include/sbi/riscv_io.h:34:	asm volatile("sd %0, 0(%1)" : : "r"(val), "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-35-}
##############################################
opensbi-0.8/include/sbi/riscv_io.h-41-
opensbi-0.8/include/sbi/riscv_io.h:42:	asm volatile("lb %0, 0(%1)" : "=r"(val) : "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-43-	return val;
##############################################
opensbi-0.8/include/sbi/riscv_io.h-49-
opensbi-0.8/include/sbi/riscv_io.h:50:	asm volatile("lh %0, 0(%1)" : "=r"(val) : "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-51-	return val;
##############################################
opensbi-0.8/include/sbi/riscv_io.h-57-
opensbi-0.8/include/sbi/riscv_io.h:58:	asm volatile("lw %0, 0(%1)" : "=r"(val) : "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-59-	return val;
##############################################
opensbi-0.8/include/sbi/riscv_io.h-66-
opensbi-0.8/include/sbi/riscv_io.h:67:	asm volatile("ld %0, 0(%1)" : "=r"(val) : "r"(addr));
opensbi-0.8/include/sbi/riscv_io.h-68-	return val;
##############################################
opensbi-0.8/include/sbi/sbi_csr_detect.h-19-	register ulong ttmp asm("a4");					\
opensbi-0.8/include/sbi/sbi_csr_detect.h:20:	register ulong mtvec = sbi_hart_expected_trap_addr();		\
opensbi-0.8/include/sbi/sbi_csr_detect.h-21-	register ulong ret = 0;						\
opensbi-0.8/include/sbi/sbi_csr_detect.h:22:	asm volatile(							\
opensbi-0.8/include/sbi/sbi_csr_detect.h-23-		"add %[ttmp], %[tinfo], zero\n"				\
##############################################
opensbi-0.8/include/sbi/sbi_csr_detect.h-37-	register ulong ttmp asm("a4");					\
opensbi-0.8/include/sbi/sbi_csr_detect.h:38:	register ulong mtvec = sbi_hart_expected_trap_addr();		\
opensbi-0.8/include/sbi/sbi_csr_detect.h:39:	asm volatile(							\
opensbi-0.8/include/sbi/sbi_csr_detect.h-40-		"add %[ttmp], %[tinfo], zero\n"				\
##############################################
opensbi-0.8/include/sbi/sbi_hart.h-34-extern void (*sbi_hart_expected_trap)(void);
opensbi-0.8/include/sbi/sbi_hart.h:35:static inline ulong sbi_hart_expected_trap_addr(void)
opensbi-0.8/include/sbi/sbi_hart.h-36-{
##############################################
opensbi-0.8/include/sbi/sbi_hart.h-45-void sbi_hart_pmp_dump(struct sbi_scratch *scratch);
opensbi-0.8/include/sbi/sbi_hart.h:46:int  sbi_hart_pmp_check_addr(struct sbi_scratch *scratch, unsigned long daddr,
opensbi-0.8/include/sbi/sbi_hart.h-47-			     unsigned long attr);
##############################################
opensbi-0.8/include/sbi_utils/fdt/fdt_helper.h-64-
opensbi-0.8/include/sbi_utils/fdt/fdt_helper.h:65:int fdt_parse_compat_addr(void *fdt, unsigned long *addr,
opensbi-0.8/include/sbi_utils/fdt/fdt_helper.h-66-			  const char *compatible);
##############################################
opensbi-0.8/lib/sbi/sbi_hart.c-186-
opensbi-0.8/lib/sbi/sbi_hart.c:187:int sbi_hart_pmp_check_addr(struct sbi_scratch *scratch, unsigned long addr,
opensbi-0.8/lib/sbi/sbi_hart.c-188-			    unsigned long attr)
##############################################
opensbi-0.8/lib/sbi/sbi_hsm.c-230-
opensbi-0.8/lib/sbi/sbi_hsm.c:231:	rc = sbi_hart_pmp_check_addr(scratch, saddr, PMP_X);
opensbi-0.8/lib/sbi/sbi_hsm.c-232-	if (rc)
##############################################
opensbi-0.8/lib/sbi/sbi_unpriv.c-26-		register ulong mstatus = 0;                                   \
opensbi-0.8/lib/sbi/sbi_unpriv.c:27:		register ulong mtvec = sbi_hart_expected_trap_addr();         \
opensbi-0.8/lib/sbi/sbi_unpriv.c-28-		type ret = 0;                                                 \
opensbi-0.8/lib/sbi/sbi_unpriv.c-29-		trap->cause = 0;                                              \
opensbi-0.8/lib/sbi/sbi_unpriv.c:30:		asm volatile(                                                 \
opensbi-0.8/lib/sbi/sbi_unpriv.c-31-			"add %[tinfo], %[taddr], zero\n"                      \
##############################################
opensbi-0.8/lib/sbi/sbi_unpriv.c-53-		register ulong mstatus = 0;                                   \
opensbi-0.8/lib/sbi/sbi_unpriv.c:54:		register ulong mtvec = sbi_hart_expected_trap_addr();         \
opensbi-0.8/lib/sbi/sbi_unpriv.c-55-		trap->cause = 0;                                              \
opensbi-0.8/lib/sbi/sbi_unpriv.c:56:		asm volatile(                                                 \
opensbi-0.8/lib/sbi/sbi_unpriv.c-57-			"add %[tinfo], %[taddr], zero\n"                      \
##############################################
opensbi-0.8/lib/sbi/sbi_unpriv.c-121-	register ulong mstatus = 0;
opensbi-0.8/lib/sbi/sbi_unpriv.c:122:	register ulong mtvec = sbi_hart_expected_trap_addr();
opensbi-0.8/lib/sbi/sbi_unpriv.c-123-	ulong insn = 0;
##############################################
opensbi-0.8/lib/sbi/sbi_unpriv.c-126-
opensbi-0.8/lib/sbi/sbi_unpriv.c:127:	asm volatile(
opensbi-0.8/lib/sbi/sbi_unpriv.c-128-	    "add %[tinfo], %[taddr], zero\n"
##############################################
opensbi-0.8/lib/utils/fdt/fdt_helper.c-404-
opensbi-0.8/lib/utils/fdt/fdt_helper.c:405:int fdt_parse_compat_addr(void *fdt, unsigned long *addr,
opensbi-0.8/lib/utils/fdt/fdt_helper.c-406-			  const char *compatible)
##############################################
opensbi-0.8/platform/andes/ae350/cache.c-34-		csr_clear(CSR_MCACHECTL, V5_MCACHE_CTL_IC_EN);
opensbi-0.8/platform/andes/ae350/cache.c:35:		asm volatile("fence.i\n\t");
opensbi-0.8/platform/andes/ae350/cache.c-36-	}
##############################################
opensbi-0.8/platform/andes/ae350/platform.c-163-		sbi_printf("Unsupported vendor sbi call : %ld\n", funcid);
opensbi-0.8/platform/andes/ae350/platform.c:164:		asm volatile("ebreak");
opensbi-0.8/platform/andes/ae350/platform.c-165-	}
##############################################
opensbi-0.8/platform/andes/ae350/platform.h-25-#define AE350_UART_ADDR_OFFSET		0x20
opensbi-0.8/platform/andes/ae350/platform.h:26:#define AE350_UART_ADDR			(0xf0300000 + AE350_UART_ADDR_OFFSET)
opensbi-0.8/platform/andes/ae350/platform.h-27-#define AE350_UART_FREQUENCY		19660800
##############################################
opensbi-0.8/platform/fpga/openpiton/platform.c-68-
opensbi-0.8/platform/fpga/openpiton/platform.c:69:	rc = fdt_parse_compat_addr(fdt, &clint_addr, "riscv,clint0");
opensbi-0.8/platform/fpga/openpiton/platform.c-70-	if (!rc)
##############################################
opensbi-0.8/platform/nuclei/ux600/platform.c-32-/* The clint compatiable timer offset is 0x1000 against nuclei timer */
opensbi-0.8/platform/nuclei/ux600/platform.c:33:#define UX600_CLINT_TIMER_ADDR		(UX600_NUCLEI_TIMER_ADDR + 0x1000)
opensbi-0.8/platform/nuclei/ux600/platform.c-34-
##############################################
opensbi-0.8/platform/thead/c910/platform.c-112-{
opensbi-0.8/platform/thead/c910/platform.c:113:	asm volatile ("ebreak");
opensbi-0.8/platform/thead/c910/platform.c-114-	return 0;