Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit 8218d029 authored by Randy Dunlap's avatar Randy Dunlap Committed by H. Peter Anvin
Browse files

x86 boot code comments typos


Fix comments typos in new x86 boot code.

Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 6a302358
Branches
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* code16gcc.h * code16gcc.h
* *
* This file is -include'd when compiling 16-bit C code. * This file is -include'd when compiling 16-bit C code.
* Note: this asm() needs to be emitted before gcc omits any code. * Note: this asm() needs to be emitted before gcc emits any code.
* Depending on gcc version, this requires -fno-unit-at-a-time or * Depending on gcc version, this requires -fno-unit-at-a-time or
* -fno-toplevel-reorder. * -fno-toplevel-reorder.
* *
......
...@@ -225,7 +225,7 @@ start_of_setup: ...@@ -225,7 +225,7 @@ start_of_setup:
int $0x13 int $0x13
#endif #endif
# We will have entired with %cs = %ds+0x20, normalize %cs so # We will have entered with %cs = %ds+0x20, normalize %cs so
# it is on par with the other segments. # it is on par with the other segments.
pushw %ds pushw %ds
pushw $setup2 pushw $setup2
......
...@@ -80,7 +80,7 @@ static void move_kernel_around(void) ...@@ -80,7 +80,7 @@ static void move_kernel_around(void)
*/ */
static void mask_all_interrupts(void) static void mask_all_interrupts(void)
{ {
outb(0xff, 0xa1); /* Mask all interrupts on the seconday PIC */ outb(0xff, 0xa1); /* Mask all interrupts on the secondary PIC */
io_delay(); io_delay();
outb(0xfb, 0x21); /* Mask all but cascade on the primary PIC */ outb(0xfb, 0x21); /* Mask all but cascade on the primary PIC */
io_delay(); io_delay();
......
...@@ -44,7 +44,7 @@ static int set_bios_mode(u8 mode) ...@@ -44,7 +44,7 @@ static int set_bios_mode(u8 mode)
: "+a" (ax) : "+a" (ax)
: : "ebx", "ecx", "edx", "esi", "edi"); : : "ebx", "ecx", "edx", "esi", "edi");
do_restore = 1; /* Assume video contents was lost */ do_restore = 1; /* Assume video contents were lost */
new_mode = ax & 0x7f; /* Not all BIOSes are clean with the top bit */ new_mode = ax & 0x7f; /* Not all BIOSes are clean with the top bit */
if (new_mode == mode) if (new_mode == mode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment