summaryrefslogtreecommitdiff
path: root/src/cpu/x86/64bit/exit32.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/64bit/exit32.inc')
-rw-r--r--src/cpu/x86/64bit/exit32.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/x86/64bit/exit32.inc b/src/cpu/x86/64bit/exit32.inc
index 91cccb535e..4d1149ee6c 100644
--- a/src/cpu/x86/64bit/exit32.inc
+++ b/src/cpu/x86/64bit/exit32.inc
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
- * For droping from long mode to protected mode.
+ * For dropping from long mode to protected mode.
*
* For reference see "AMD64 ArchitectureProgrammer's Manual Volume 2",
* Document 24593-Rev. 3.31-July 2019 Chapter 5.3
@@ -47,7 +47,7 @@ SetCodeSelector32:
# use iret to jump to a 32-bit offset in a new code segment
# iret will pop cs:rip, flags, then ss:rsp
- mov %ss, %ax # need to push ss, but push ss instuction
+ mov %ss, %ax # need to push ss, but push ss instruction
push %rax # not valid in x64 mode, so use ax
push %rdx # the rsp to load
pushfq # push rflags