Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix the typos #295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
#
Expand Down
2 changes: 1 addition & 1 deletion firmware/fw_base.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion include/sbi/sbi_hsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <sbi/sbi_types.h>

/** Hart state managment device */
/** Hart state management device */
struct sbi_hsm_device {
/** Name of the hart state managment device */
char name[32];
Expand Down
2 changes: 1 addition & 1 deletion lib/sbi/sbi_hart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/sbi/sbi_trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lib/utils/libfdt/libfdt.h
Original file line number Diff line number Diff line change
Expand Up @@ -725,15 +725,15 @@ 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).
*
* returns:
* 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):
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/libfdt/libfdt_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/serial/uart8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions platform/generic/include/thead_c9xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion platform/nuclei/ux600/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion platform/template/objects.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/Kconfiglib/kconfiglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down