From abaf07d0c8555f62cfe50e098247c4ee8263f85b Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Sat, 18 Mar 2023 20:25:52 +0800 Subject: [PATCH] fix: Fix the typos --- docs/doxygen.cfg | 4 ++-- firmware/fw_base.S | 2 +- include/sbi/sbi_hsm.h | 2 +- lib/sbi/sbi_hart.c | 2 +- lib/sbi/sbi_trap.c | 2 +- lib/utils/libfdt/libfdt.h | 8 ++++---- lib/utils/libfdt/libfdt_internal.h | 2 +- lib/utils/serial/uart8250.c | 2 +- platform/generic/include/thead_c9xx.h | 4 ++-- platform/nuclei/ux600/platform.c | 2 +- platform/template/objects.mk | 2 +- scripts/Kconfiglib/kconfiglib.py | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/doxygen.cfg b/docs/doxygen.cfg index 82f31a7ae6f..07c4238e5cc 100644 --- a/docs/doxygen.cfg +++ b/docs/doxygen.cfg @@ -44,7 +44,7 @@ PROJECT_NUMBER = "v@@OPENSBI_MAJOR@@.@@OPENSBI_MINOR@@" # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. -PROJECT_BRIEF = "Open source implemenation of the supervisor binary interface" +PROJECT_BRIEF = "Open source implementation of the supervisor binary interface" # With the PROJECT_LOGO tag one can specify a logo or an icon that is included # in the documentation. The maximum height of the logo should not exceed 55 @@ -1481,7 +1481,7 @@ EXT_LINKS_IN_WINDOW = NO FORMULA_FONTSIZE = 10 -# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# Use the FORMULA_TRANSPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # diff --git a/firmware/fw_base.S b/firmware/fw_base.S index ceef44f26b1..20026444528 100644 --- a/firmware/fw_base.S +++ b/firmware/fw_base.S @@ -347,7 +347,7 @@ _scratch_init: blt t1, s7, _scratch_init /* - * Relocate Flatened Device Tree (FDT) + * Relocate Flattened Device Tree (FDT) * source FDT address = previous arg1 * destination FDT address = next arg1 * diff --git a/include/sbi/sbi_hsm.h b/include/sbi/sbi_hsm.h index 4b5601ba40c..6cdf0e9594e 100644 --- a/include/sbi/sbi_hsm.h +++ b/include/sbi/sbi_hsm.h @@ -12,7 +12,7 @@ #include -/** Hart state managment device */ +/** Hart state management device */ struct sbi_hsm_device { /** Name of the hart state managment device */ char name[32]; diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index 5e06918c7a4..ff8ebd541b3 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -332,7 +332,7 @@ int sbi_hart_pmp_configure(struct sbi_scratch *scratch) /* * As per section 3.7.2 of privileged specification v1.12, * virtual address translations can be speculatively performed - * (even before actual access). These, along with PMP traslations, + * (even before actual access). These, along with PMP translations, * can be cached. This can pose a problem with CPU hotplug * and non-retentive suspend scenario because PMP states are * not preserved. diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c index 025cf614c27..d2a70c202b2 100644 --- a/lib/sbi/sbi_trap.c +++ b/lib/sbi/sbi_trap.c @@ -76,7 +76,7 @@ static void __noreturn sbi_trap_error(const char *msg, int rc, } /** - * Redirect trap to lower privledge mode (S-mode or U-mode) + * Redirect trap to lower privilege mode (S-mode or U-mode) * * @param regs pointer to register state * @param trap pointer to trap details diff --git a/lib/utils/libfdt/libfdt.h b/lib/utils/libfdt/libfdt.h index 73467f75c58..1604dada325 100644 --- a/lib/utils/libfdt/libfdt.h +++ b/lib/utils/libfdt/libfdt.h @@ -725,7 +725,7 @@ static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, * to within the device blob itself, not a copy of the value). If * lenp is non-NULL, the length of the property value is also * returned, in the integer pointed to by lenp. If namep is non-NULL, - * the property's namne will also be returned in the char * pointed to + * the property's name will also be returned in the char * pointed to * by namep (this will be a pointer to within the device tree's string * block, not a new copy of the name). * @@ -733,7 +733,7 @@ static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, * pointer to the property's value * if lenp is non-NULL, *lenp contains the length of the property * value (>=0) - * if namep is non-NULL *namep contiains a pointer to the property + * if namep is non-NULL *namep contains a pointer to the property * name. * NULL, on error * if lenp is non-NULL, *lenp contains an error code (<0): @@ -1623,7 +1623,7 @@ int fdt_setprop(void *fdt, int nodeoffset, const char *name, * @len: length of the property value * @prop_data: return pointer to property data * - * fdt_setprop_placeholer() allocates the named property in the given node. + * fdt_setprop_placeholder() allocates the named property in the given node. * If the property exists it is resized. In either case a pointer to the * property data is returned. * @@ -2092,7 +2092,7 @@ int fdt_del_node(void *fdt, int nodeoffset); * returns: * 0, on success * -FDT_ERR_NOSPACE, there's not enough space in the base device tree - * -FDT_ERR_NOTFOUND, the overlay points to some inexistant nodes or + * -FDT_ERR_NOTFOUND, the overlay points to some inexistent nodes or * properties in the base DT * -FDT_ERR_BADPHANDLE, * -FDT_ERR_BADOVERLAY, diff --git a/lib/utils/libfdt/libfdt_internal.h b/lib/utils/libfdt/libfdt_internal.h index 16bda1906a7..125c0f77345 100644 --- a/lib/utils/libfdt/libfdt_internal.h +++ b/lib/utils/libfdt/libfdt_internal.h @@ -48,7 +48,7 @@ static inline struct fdt_reserve_entry *fdt_mem_rsv_w_(void *fdt, int n) /* * Internal helpers to access tructural elements of the device tree - * blob (rather than for exaple reading integers from within property + * blob (rather than for example reading integers from within property * values). We assume that we are either given a naturally aligned * address for the platform or if we are not, we are on a platform * where unaligned memory reads will be handled in a graceful manner. diff --git a/lib/utils/serial/uart8250.c b/lib/utils/serial/uart8250.c index 99bf1bf733f..9f72b3b6572 100644 --- a/lib/utils/serial/uart8250.c +++ b/lib/utils/serial/uart8250.c @@ -13,7 +13,7 @@ /* clang-format off */ -#define UART_RBR_OFFSET 0 /* In: Recieve Buffer Register */ +#define UART_RBR_OFFSET 0 /* In: Receive Buffer Register */ #define UART_THR_OFFSET 0 /* Out: Transmitter Holding Register */ #define UART_DLL_OFFSET 0 /* Out: Divisor Latch Low */ #define UART_IER_OFFSET 1 /* I/O: Interrupt Enable Register */ diff --git a/platform/generic/include/thead_c9xx.h b/platform/generic/include/thead_c9xx.h index bab04082364..7203516954c 100644 --- a/platform/generic/include/thead_c9xx.h +++ b/platform/generic/include/thead_c9xx.h @@ -96,13 +96,13 @@ /* T-HEAD C9xx U mode CSR. */ #define THEAD_C9XX_CSR_FXCR 0x800 -/* T-HEAD C9xx MMU extentions. */ +/* T-HEAD C9xx MMU extensions. */ #define THEAD_C9XX_CSR_SMIR 0x9c0 #define THEAD_C9XX_CSR_SMEL 0x9c1 #define THEAD_C9XX_CSR_SMEH 0x9c2 #define THEAD_C9XX_CSR_SMCIR 0x9c3 -/* T-HEAD C9xx Security CSR(May be droped). */ +/* T-HEAD C9xx Security CSR(May be dropped). */ #define THEAD_C9XX_CSR_MEBR 0xbe0 #define THEAD_C9XX_CSR_NT_MSTATUS 0xbe1 #define THEAD_C9XX_CSR_NT_MIE 0xbe2 diff --git a/platform/nuclei/ux600/platform.c b/platform/nuclei/ux600/platform.c index 4eccff15ee2..edf5f26d51a 100644 --- a/platform/nuclei/ux600/platform.c +++ b/platform/nuclei/ux600/platform.c @@ -31,7 +31,7 @@ #define UX600_NUCLEI_TIMER_ADDR 0x2000000 #define UX600_NUCLEI_TIMER_MSFTRST_OFS 0xFF0 #define UX600_NUCLEI_TIMER_MSFTRST_KEY 0x80000A5F -/* The clint compatiable timer offset is 0x1000 against nuclei timer */ +/* The clint compatible timer offset is 0x1000 against nuclei timer */ #define UX600_CLINT_TIMER_ADDR (UX600_NUCLEI_TIMER_ADDR + 0x1000) #define UX600_ACLINT_MSWI_ADDR (UX600_CLINT_TIMER_ADDR + \ CLINT_MSWI_OFFSET) diff --git a/platform/template/objects.mk b/platform/template/objects.mk index 0025928f35c..b19ebdbbd02 100644 --- a/platform/template/objects.mk +++ b/platform/template/objects.mk @@ -23,7 +23,7 @@ platform-ldflags-y = # # Platform RISC-V XLEN, ABI, ISA and Code Model configuration. -# These are optional parameters but platforms can optionaly provide it. +# These are optional parameters but platforms can optionally provide it. # Some of these are guessed based on GCC compiler capabilities # # PLATFORM_RISCV_XLEN = 64 diff --git a/scripts/Kconfiglib/kconfiglib.py b/scripts/Kconfiglib/kconfiglib.py index c67895ced6b..2622d48992c 100644 --- a/scripts/Kconfiglib/kconfiglib.py +++ b/scripts/Kconfiglib/kconfiglib.py @@ -4351,7 +4351,7 @@ def str_value(self): num2str(low), num2str(high))) else: # If the user value is well-formed and satisfies range - # contraints, it is stored in exactly the same form as + # constraints, it is stored in exactly the same form as # specified in the assignment (with or without "0x", etc.) val = self.user_value use_defaults = False