Splash
This commit is contained in:
+5
-11
@@ -69,7 +69,7 @@ struct process_t* idle_proc;
|
||||
// Never gets executed although pedicel is scheduled?
|
||||
void pedicel_main(void* arg)
|
||||
{
|
||||
printf("\n\nWelcome to PepperOS! Pedicel speaking.\r\nNothing left to do, let's go idle!\r\n");
|
||||
printf("\n\n\rWelcome to PepperOS! Pedicel speaking.\r\nNothing left to do, let's go idle!\r\n");
|
||||
}
|
||||
|
||||
void idle_main(void* arg)
|
||||
@@ -81,11 +81,10 @@ void idle_main(void* arg)
|
||||
|
||||
void thing_main(void* arg)
|
||||
{
|
||||
/* printf("What's your name, pal? ");
|
||||
printf("What's your name, pal? ");
|
||||
char name[10];
|
||||
keyboard_getline(name, 10);
|
||||
printf("\r\n{%s} is such a nice name!\r\n", name); */
|
||||
while (ticks < 500);
|
||||
printf("\r\n{%s} is such a nice name!\r\n", name);
|
||||
}
|
||||
|
||||
extern uintptr_t kheap_start;
|
||||
@@ -118,23 +117,18 @@ void kmain()
|
||||
boot_mem_display();
|
||||
pmm_init(boot_ctx);
|
||||
|
||||
// Remap kernel , HHDM and framebuffer
|
||||
paging_init(boot_ctx);
|
||||
kheap_init();
|
||||
|
||||
keyboard_init(FR);
|
||||
|
||||
gdt_init();
|
||||
idt_init();
|
||||
|
||||
process_init();
|
||||
idle_proc = process_create("idle", (void*)idle_main, 0);
|
||||
struct process_t* pedicel = process_create("pedicel", (void*)pedicel_main, 0);
|
||||
process_create("pedicel", (void*)pedicel_main, 0);
|
||||
process_create("thing", thing_main, NULL);
|
||||
process_display_list(processes_list);
|
||||
|
||||
scheduler_init();
|
||||
|
||||
kputs(PEPPEROS_SPLASH);
|
||||
printf(PEPPEROS_SPLASH);
|
||||
idle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user