diff options
author | Tom Rini <trini@konsulko.com> | 2023-10-19 09:40:04 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-19 09:40:04 -0400 |
commit | e463222cce0df86f05a117f06e1737f539841fe6 (patch) | |
tree | af3f247a2ad9ebd8622f5aa5d880547c2fe52a42 /arch/riscv/include/asm/string.h | |
parent | 48bc9de28228a0fdd30a10f59f23e6a24cb75636 (diff) | |
parent | bc5a50452bd42029d6587e1596b44ff235655e90 (diff) |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-riscv
+ riscv: Add Zbb support
+ riscv: Add preliminary RISC-V falcon mode support
+ riscv: Remove dram_init_banksize()
+ andes: rearrange PLICSW scheme
+ visionfive2: enable bootstage configs
Diffstat (limited to 'arch/riscv/include/asm/string.h')
-rw-r--r-- | arch/riscv/include/asm/string.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/string.h b/arch/riscv/include/asm/string.h index 7dee3e4c9f6..38ad85fe3bb 100644 --- a/arch/riscv/include/asm/string.h +++ b/arch/riscv/include/asm/string.h @@ -40,4 +40,22 @@ extern void *memmove(void *, const void *, __kernel_size_t); #endif extern void *memset(void *, int, __kernel_size_t); +#undef __HAVE_ARCH_STRLEN +#if CONFIG_IS_ENABLED(USE_ARCH_STRLEN) +#define __HAVE_ARCH_STRLEN +#endif +extern __kernel_size_t strlen(const char *); + +#undef __HAVE_ARCH_STRCMP +#if CONFIG_IS_ENABLED(USE_ARCH_STRCMP) +#define __HAVE_ARCH_STRCMP +#endif +extern int strcmp(const char *, const char *); + +#undef __HAVE_ARCH_STRNCMP +#if CONFIG_IS_ENABLED(USE_ARCH_STRNCMP) +#define __HAVE_ARCH_STRNCMP +#endif +extern int strncmp(const char *, const char *, size_t __kernel_size_t); + #endif /* __ASM_RISCV_STRING_H */ |