idk why but it appears that it's the tty.c that messes up the tasks, so if I clear the interrupt flag by calling it as a syscall it works

This commit is contained in:
vanten-s 2025-06-30 05:54:17 +02:00
parent b0d1c8ac26
commit 9f501f0291
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
2 changed files with 1 additions and 3 deletions

View file

@ -14,8 +14,6 @@ static void* memcpy(void* restrict dstptr, const void* restrict srcptr, size_t s
return dstptr;
}
extern void jump_to_userspace();
void run_program(uint8_t* code, size_t code_length, uint8_t* data, size_t data_length)
{
uint8_t* userland_code = (uint8_t*) 0x00000010;

View file

@ -50,7 +50,7 @@ void kernel_main(void)
while (true) {
i += 1;
if (i == 1 << 16) {
terminal_writestring("Hello\n");
asm("int $0x20");
i = 0;
}
}