summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-08-07 12:24:42 +0200
committerMartin Roth <martinroth@google.com>2018-08-09 15:56:02 +0000
commit2f79eb3fd567b7578378c4acbecaf2502d1982f4 (patch)
tree088668a42f7e108a9bddfbb465b494c5edaf2af6 /src
parent64f6b71af5443ac4e1126dc5f5202a1bc8657b31 (diff)
downloadcoreboot-2f79eb3fd567b7578378c4acbecaf2502d1982f4.tar.xz
src/arch: Fix typo
Change-Id: I24d219b4ce6033f64886e22973ca8716113d319f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/27919 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/armv7/thread.c2
-rw-r--r--src/arch/arm64/include/armv8/arch/exception.h2
-rw-r--r--src/arch/x86/Makefile.inc2
-rw-r--r--src/arch/x86/thread.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/arm/armv7/thread.c b/src/arch/arm/armv7/thread.c
index 751745b0c1..9c1c1bbdf1 100644
--- a/src/arch/arm/armv7/thread.c
+++ b/src/arch/arm/armv7/thread.c
@@ -70,7 +70,7 @@ void arch_prepare_thread(struct thread *t,
void __attribute__((naked))
switch_to_thread(uintptr_t new_stack, uintptr_t *saved_stack)
{
- /* Defintions for those of us not totally familiar with ARM:
+ /* Definitions for those of us not totally familiar with ARM:
* R15 -- PC, R14 -- LR, R13 -- SP
* R0-R3 need not be saved, nor R12.
* on entry, the only saved state is in LR -- the old PC.
diff --git a/src/arch/arm64/include/armv8/arch/exception.h b/src/arch/arm64/include/armv8/arch/exception.h
index 0ec0eea953..f897fefe18 100644
--- a/src/arch/arm64/include/armv8/arch/exception.h
+++ b/src/arch/arm64/include/armv8/arch/exception.h
@@ -57,7 +57,7 @@ struct exception_handler {
/*
* Register a handler provided with the associated vector id. Returns 0 on
- * sucess, < 0 on error. Note that registration is not thread/interrupt safe.
+ * success, < 0 on error. Note that registration is not thread/interrupt safe.
*/
int exception_handler_register(uint64_t vid, struct exception_handler *h);
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index d8430c501e..1d9ee4d5ef 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -374,7 +374,7 @@ ramstage-libs ?=
ifeq ($(CONFIG_RELOCATABLE_RAMSTAGE),y)
-# The rmodule_link defintion creates an elf file with .rmod extension.
+# The rmodule_link definition creates an elf file with .rmod extension.
$(objcbfs)/ramstage.elf: $(objcbfs)/ramstage.debug.rmod
cp $< $@
diff --git a/src/arch/x86/thread.c b/src/arch/x86/thread.c
index 0a11141d33..b1cd99fe99 100644
--- a/src/arch/x86/thread.c
+++ b/src/arch/x86/thread.c
@@ -47,7 +47,7 @@ void arch_prepare_thread(struct thread *t,
stack = push_stack(stack, (uintptr_t)arg);
stack = push_stack(stack, (uintptr_t)0);
stack = push_stack(stack, (uintptr_t)thread_entry);
- /* Make room for the registers. Ignore intial values. */
+ /* Make room for the registers. Ignore initial values. */
stack -= sizeof(struct pushad_regs);
t->stack_current = stack;