You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
early_init is a generic bootstrap function that kickstarts kernel boot up.
Here is how early_init is defined, it just maps the kernel to VMA (=0xC0000000)
voidearly_init(void)
{
/* Set up a basic paging structure so kernel is mapped to VMA */switch_to_higher_half();
/* Fix esp by adding VMA to it */
asm volatile ("addl %0, %%esp"::"g"(VMA((uintptr_t) 0)):"esp");
cpu_init();
}
From here Boot Process is done and CPU initialization is started.