summaryrefslogtreecommitdiff
path: root/kernel/src/scheduler/ap_init.S
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 07:26:22 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 08:45:12 +0100
commit5ba212fe7123d454414f64d42ec7ff0822458c13 (patch)
treea82f8057cc57b6efb8ac19f9d01c2cc1aebc29c0 /kernel/src/scheduler/ap_init.S
parent239900af293f192931391dc5579afab39a43e6c6 (diff)
ANSI C: // -> /* */
Diffstat (limited to 'kernel/src/scheduler/ap_init.S')
-rw-r--r--kernel/src/scheduler/ap_init.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/src/scheduler/ap_init.S b/kernel/src/scheduler/ap_init.S
index ac758c8..c6f4dfb 100644
--- a/kernel/src/scheduler/ap_init.S
+++ b/kernel/src/scheduler/ap_init.S
@@ -11,9 +11,9 @@ ap_trampoline:
.align 16
gdt32:
.long 0, 0
- .long 0x0000FFFF, 0x00CF9A00 # flat code
- .long 0x0000FFFF, 0x008F9200 # flat data
- .long 0x00000068, 0x00CF8900 # tss
+ .long 0x0000FFFF, 0x00CF9A00 /* flat code */
+ .long 0x0000FFFF, 0x008F9200 /* flat data */
+ .long 0x00000068, 0x00CF8900 /* tss */
gdt32p:
.word gdt32p - gdt32 - 1
.long 0x8010
@@ -34,14 +34,14 @@ _start32:
movw $16, %ax
movw %ax, %ds
movw %ax, %ss
- # get our Local APIC ID
+ /* get our Local APIC ID */
mov $1, %eax
cpuid
shrl $24, %ebx
movl %ebx, %edi
- # set up 32k stack, one for each core. It is important that all core must have its own stack
+ /* set up 32k stack, one for each core. It is important that all core must have its own stack */
movl $stack_top, %esp
movl %ebx, %ecx
22:
@@ -53,7 +53,7 @@ _start32:
call enable_paging
lgdt gdtp
- # jump into C code (should never return)
+ /* jump into C code (should never return) */
ljmp $8, $_start64
.set KERNEL_VMA, 0xffffffff80000000