feat/kernel: Remove COM1 init hcf()
This commit is contained in:
parent
89795c4ad8
commit
9be94a75b0
2 changed files with 6 additions and 7 deletions
|
@ -50,11 +50,6 @@ struct flanterm_context *ft_ctx = NULL;
|
||||||
void emk_entry(void)
|
void emk_entry(void)
|
||||||
{
|
{
|
||||||
__asm__ volatile("movq %%rsp, %0" : "=r"(kstack_top));
|
__asm__ volatile("movq %%rsp, %0" : "=r"(kstack_top));
|
||||||
if (serial_init(COM1) != 0)
|
|
||||||
{
|
|
||||||
/* Just halt and say nothing */
|
|
||||||
hcf();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Init flanterm if we compiled with support */
|
/* Init flanterm if we compiled with support */
|
||||||
#if FLANTERM_SUPPORT
|
#if FLANTERM_SUPPORT
|
||||||
|
@ -75,12 +70,17 @@ void emk_entry(void)
|
||||||
0);
|
0);
|
||||||
#endif // FLANTERM_SUPPORT
|
#endif // FLANTERM_SUPPORT
|
||||||
|
|
||||||
|
if (serial_init(COM1) != 0)
|
||||||
|
{
|
||||||
|
/* Just do nothing */
|
||||||
|
}
|
||||||
|
|
||||||
log_early("Experimental Micro Kernel (EMK) 1.0 Copytright (c) 2025 Piraterna");
|
log_early("Experimental Micro Kernel (EMK) 1.0 Copytright (c) 2025 Piraterna");
|
||||||
log_early("Compiled at %s %s, emk1.0-%s, flanterm support: %s", __TIME__, __DATE__, BUILD_MODE, FLANTERM_SUPPORT ? "yes" : "no");
|
log_early("Compiled at %s %s, emk1.0-%s, flanterm support: %s", __TIME__, __DATE__, BUILD_MODE, FLANTERM_SUPPORT ? "yes" : "no");
|
||||||
|
|
||||||
if (!LIMINE_BASE_REVISION_SUPPORTED)
|
if (!LIMINE_BASE_REVISION_SUPPORTED)
|
||||||
{
|
{
|
||||||
kpanic(NULL, "Limine base revision is not supported\n");
|
kpanic(NULL, "Limine base revision is not supported");
|
||||||
hcf();
|
hcf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,6 @@ void *valloc(vctx_t *ctx, size_t pages, uint64_t flags)
|
||||||
|
|
||||||
while (region)
|
while (region)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (region->next == NULL || region->start + region->pages < region->next->start)
|
if (region->next == NULL || region->start + region->pages < region->next->start)
|
||||||
{
|
{
|
||||||
new = (vregion_t *)palloc(1, true);
|
new = (vregion_t *)palloc(1, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue