1
0
Fork 0

feat/kernel: Just make kernel not mention anything about userspace since i prob shouldnt have it implemented yet

This commit is contained in:
Kevin Alavik 2025-06-01 18:47:13 +02:00
parent e7b9f44384
commit d306dcb199
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7

View file

@ -73,11 +73,6 @@ void tick(struct register_ctx *)
log_early("tick on CPU %d", get_cpu_local()->cpu_index); log_early("tick on CPU %d", get_cpu_local()->cpu_index);
} }
void user_func()
{
syscall(69, 69, 420, 420);
}
void emk_entry(void) void emk_entry(void)
{ {
__asm__ volatile("movq %%rsp, %0" : "=r"(kstack_top)); __asm__ volatile("movq %%rsp, %0" : "=r"(kstack_top));
@ -218,12 +213,9 @@ void emk_entry(void)
/* Setup timer */ /* Setup timer */
pit_init(NULL); pit_init(NULL);
/* Call our user space function */
user_func(); // No good way to run in usermode, yet
/* Finished */ /* Finished */
log_early("%s", LOG_SEPARATOR); log_early("%s", LOG_SEPARATOR);
log_early("Finished initializing EMK v1.0, took ? seconds"); /* Still not usermode, so keep using log_early */ log_early("Finished initializing EMK v1.0, took ? seconds"); /* Still not running in usermode, so keep using log_early */
__asm__ volatile("sti"); __asm__ volatile("sti");
hlt(); hlt();