20 lines
206 B
C
20 lines
206 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#include "descriptor.h"
|
|
|
|
void yield()
|
|
{
|
|
for (;;) {
|
|
asm("hlt");
|
|
}
|
|
}
|
|
|
|
void _panic()
|
|
{
|
|
yield();
|
|
}
|
|
|
|
void arch_init()
|
|
{
|
|
gdt_init();
|
|
idt_init();
|
|
}
|