main: move pic stuff into _pic_init
This commit is contained in:
parent
c1628a90d0
commit
d7ed4bd777
1 changed files with 14 additions and 9 deletions
23
init/main.c
23
init/main.c
|
|
@ -27,6 +27,19 @@ static void done(void)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void _pic_init()
|
||||
{
|
||||
cli();
|
||||
pic_mask(4, 0);
|
||||
pic_init();
|
||||
sti();
|
||||
console_resize();
|
||||
|
||||
while (!console_ready())
|
||||
;
|
||||
iowait();
|
||||
}
|
||||
|
||||
void kmain(void)
|
||||
{
|
||||
hhdm_start = hhdm_req.response->offset;
|
||||
|
|
@ -46,15 +59,7 @@ void kmain(void)
|
|||
mem_early_init(kmem, one_gb);
|
||||
kmalloc_init();
|
||||
|
||||
cli();
|
||||
pic_mask(4, 0);
|
||||
pic_init();
|
||||
sti();
|
||||
console_resize();
|
||||
|
||||
while (!console_ready())
|
||||
;
|
||||
iowait();
|
||||
_pic_init();
|
||||
|
||||
printf("\n# ");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue