From 66192618a7d1125fb38829f70d4ee0e7cd74a65b Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Mon, 24 Sep 2018 11:41:42 +0200 Subject: [PATCH] arch: arm: Minor style and typo fixes in inline comments Several style and typo fixes in inline comments of arm kernel files and thread.c. Signed-off-by: Ioannis Glaropoulos --- arch/arm/core/thread.c | 2 +- include/arch/arm/arch.h | 10 +++++----- kernel/thread.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/core/thread.c b/arch/arm/core/thread.c index 4d1463e9e5..51d79ee9d0 100644 --- a/arch/arm/core/thread.c +++ b/arch/arm/core/thread.c @@ -125,7 +125,7 @@ FUNC_NORETURN void _arch_user_mode_enter(k_thread_entry_t user_entry, _current->arch.priv_stack_size = (u32_t)CONFIG_PRIVILEGED_STACK_SIZE; - /* FIXME: Need a general API for aligning stacks so thet the initial + /* FIXME: Need a general API for aligning stacks so that the initial * user thread stack pointer doesn't overshoot the granularity of MPU * regions, that works for ARM/NXP/QEMU. */ diff --git a/include/arch/arm/arch.h b/include/arch/arm/arch.h index 459ed8972d..51df26b186 100644 --- a/include/arch/arm/arch.h +++ b/include/arch/arm/arch.h @@ -10,7 +10,7 @@ * * This header contains the ARM specific kernel interface. It is * included by the kernel interface architecture-abstraction header - * (include/arc/cpu.h) + * (include/arm/cpu.h) */ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_ARCH_H_ @@ -54,11 +54,11 @@ extern "C" { /** * @brief Declare a minimum MPU guard alignment and size * - * This specifies the minimum MPU guard alignment/size for the MPU. This + * This specifies the minimum MPU guard alignment/size for the MPU. This * will be used to denote the guard section of the stack, if it exists. * * One key note is that this guard results in extra bytes being added to - * the stack. APIs which give the stack ptr and stack size will take this + * the stack. APIs which give the stack ptr and stack size will take this * guard size into account. * * Stack is allocated, but initial stack pointer is at the end @@ -121,7 +121,7 @@ extern "C" { 1 << (31 - __builtin_clz(x))) /** - * @brief Declare a toplevel thread stack memory region + * @brief Declare a top level thread stack memory region * * This declares a region of memory suitable for use as a thread's stack. * @@ -169,7 +169,7 @@ extern "C" { #endif /** - * @brief Declare a toplevel array of thread stack memory regions + * @brief Declare a top level array of thread stack memory regions * * Create an array of equally sized stacks. See K_THREAD_STACK_DEFINE * definition for additional details and constraints. diff --git a/kernel/thread.c b/kernel/thread.c index 7c6a34ee74..39a08c5e95 100644 --- a/kernel/thread.c +++ b/kernel/thread.c @@ -562,7 +562,7 @@ void _k_thread_single_abort(struct k_thread *thread) sys_trace_thread_abort(thread); #ifdef CONFIG_USERSPACE - /* Clear initailized state so that this thread object may be re-used + /* Clear initialized state so that this thread object may be re-used * and triggers errors if API calls are made on it from user threads */ _k_object_uninit(thread->stack_obj);