Skip to content

Commit fcbb15c

Browse files
axel-hlsf37
authored andcommitted
trivial: fix typos and copy/paste fragments
Signed-off-by: Axel Heider <[email protected]>
1 parent 9eca49f commit fcbb15c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

config.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ config_option(
364364
config_choice(
365365
KernelBenchmarks
366366
KERNEL_BENCHMARK
367-
"Enable benchamrks including logging and tracing info. \
367+
"Enable benchmarks including logging and tracing info. \
368368
Setting this value > 1 enables a 1MB log buffer and functions for extracting data from it \
369369
at user level. NOTE this is only tested on the sabre and will not work on platforms with < 512mb memory. \
370370
This is not fully implemented for x86. \
@@ -386,7 +386,7 @@ else()
386386
config_set(KernelEnableBenchmarks ENABLE_BENCHMARKS OFF)
387387
endif()
388388

389-
# Reflect the existance of kernel Log buffer
389+
# Reflect the existence of kernel Log buffer
390390
if(KernelBenchmarksTrackKernelEntries OR KernelBenchmarksTracepoints)
391391
config_set(KernelLogBuffer KERNEL_LOG_BUFFER ON)
392392
else()

include/arch/riscv/arch/32/mode/hardware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static inline uint64_t riscv_read_cycle(void)
9595
"rdcycleh %2\n"
9696
: "=r"(nH1), "=r"(nL), "=r"(nH2));
9797
if (nH1 != nH2) {
98-
/* Ensure that the time is correct if there is a rollover in the
98+
/* Ensure that the cycles are correct if there is a rollover in the
9999
* high bits between reading the low and high bits. */
100100
asm volatile(
101101
"rdcycle %0\n"

include/util.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
#ifdef __ASSEMBLER__
1414

1515
/* Provide a helper macro to define integer constants that are not of the
16-
* default type 'ìnt', but 'unsigned long'. When such constants are shared
17-
* between assembly and C code, some assemblers will fail because don't support
18-
* C-style integer suffixes like 'ul'. Using a macro works around this, as the
19-
* suffix is only applies when the C compiler is used and dropped when the
20-
* assembler runs.
16+
* default type 'ìnt', but 'unsigned long [long]'. When such constants are
17+
* shared between assembly and C code, some assemblers will fail because they
18+
* don't support C-style integer suffixes like 'ul'. Using a macro works around
19+
* this, as the suffix is only applied when the C compiler is used and dropped
20+
* when the assembler runs.
2121
*/
2222
#define UL_CONST(x) x
2323
#define ULL_CONST(x) x
@@ -45,9 +45,9 @@
4545
#define MIN(a,b) (((a)<(b))?(a):(b))
4646
#define MAX(a,b) (((a)>(b))?(a):(b))
4747

48-
/* Time constants are define to use the 'unsigned long long'. Rationale is, that
49-
* the C rules define the calculation result is determined by largest type
50-
* involved. Enforcing the larges possible type C provides avoids pitfalls with
48+
/* Time constants are defined to use the 'unsigned long long'. Rationale is,
49+
* that the C rules define the calculation result is determined by largest type
50+
* involved. Enforcing the largest possible type C provides avoids pitfalls with
5151
* 32-bit overflows when values are getting quite large. Keep in mind that even
5252
* 2^32 milli-seconds roll over within 50 days, which is an uptime that embedded
5353
* systems will reach easily and it resembles not even two months in a calendar

src/kernel/boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ BOOT_CODE bool_t init_freemem(word_t n_available, const p_region_t *available,
820820
/* skip the entire region - it's empty now after trimming */
821821
a++;
822822
} else if (reserved[r].end <= avail_reg[a].start) {
823-
/* the reserved region is below the available region - skip it*/
823+
/* the reserved region is below the available region - skip it */
824824
reserve_region(pptr_to_paddr_reg(reserved[r]));
825825
r++;
826826
} else if (reserved[r].start >= avail_reg[a].end) {

0 commit comments

Comments
 (0)