main: add comments explaining ap_kmain and kmain

This commit is contained in:
Michael Shaw 2023-11-01 19:18:59 -04:00
commit f880efe02d

View file

@ -105,7 +105,11 @@ char *kcmdline_get_symbol(const char *sym)
return NULL;
}
void kmain(void)
/* kmain
*
* main kernel entry point, executed solely by the BSP
*/
void kmain()
{
cli();
hhdm_start = hhdm_req.response->offset;
@ -187,6 +191,11 @@ void kmain(void)
load_stack_and_park(ptr, ptr);
}
/* kmain for application processors
*
* This code enables basic processor functions and parks the processor, waiting
* for future scheduling
*/
void ap_kmain(struct limine_smp_info *info)
{
gdt_load();