summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-27 14:35:29 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-27 14:38:43 -0400
commit6ece4e20acd943b49b05a36f14594ad7413c1897 (patch)
tree44ccdad86bdc4f1dabd5670f5c096046581c38b7 /boot
parentmove user to 0x30000, update kernel.ld (diff)
downloadcomus-6ece4e20acd943b49b05a36f14594ad7413c1897.tar.gz
comus-6ece4e20acd943b49b05a36f14594ad7413c1897.tar.bz2
comus-6ece4e20acd943b49b05a36f14594ad7413c1897.zip
remove trailing whitespace
Diffstat (limited to 'boot')
-rw-r--r--boot/boot.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/boot/boot.S b/boot/boot.S
index 50d6188..7882672 100644
--- a/boot/boot.S
+++ b/boot/boot.S
@@ -17,7 +17,7 @@
**
** The bootstrap initially sets up a stack in low memory. Next, it
** loads a second sector at 0000:7E00 (immediately following the
-** boot block). Then it loads the target program at TARGET_ADDR,
+** boot block). Then it loads the target program at TARGET_ADDR,
** switches to protected mode, and branches to the target program.
**
** NOTE: To zero out the BSS segment, define CLEAR_BSS when this code
@@ -222,11 +222,11 @@ done_loading:
call dispMsg
jmp switch /* move to the next phase */
-
+
/*
** Support routine - display a message byte by byte to the monitor.
*/
-dispMsg:
+dispMsg:
pushw %ax
pushw %bx
repeat:
@@ -238,7 +238,7 @@ repeat:
jz getOut /* if we've reached the NUL, get out */
int $BIOS_VIDEO /* otherwise, print and repeat */
- jmp repeat
+ jmp repeat
getOut: /* we're done, so return */
popw %bx
@@ -373,7 +373,7 @@ switch:
movl %cr0, %eax /* get current CR0 */
orl $1, %eax /* set the PE bit */
movl %eax, %cr0 /* and store it back. */
-
+
/*
** We'll be in protected mode at the start of the user's code
** right after this jump executes.
@@ -447,13 +447,13 @@ enable_A20:
a20wait: /* wait until bit 1 of the device register is clear */
movl $65536, %ecx /* loop a lot if need be */
-wait_loop:
+wait_loop:
inb $KBD_STAT, %al /* grab the byte */
test $2, %al /* is the bit clear? */
jz wait_exit /* yes */
loop wait_loop /* no, so loop */
jmp a20wait /* if still not clear, go again */
-wait_exit:
+wait_exit:
ret
a20wait2: /* like a20wait, but waits until bit 0 is set. */