Page 1 of 1

Help Me

Posted: Thu Aug 20, 2026 7:54 am
by nicolasbick11
while i'm trying to implement syscall instruction in My x86_64 Hobby OS it causes unexpected faults, like #PF, #UD, #GP.
my Kernel repository: [Nikinix]https://github.com/nicolasbickhoff11/Nikinix.git[/Nikinix]
file: in src (src/syscall/entry/entry.asm.org)
If you can, submit a pull request :D

Re: Help Me

Posted: Sun Aug 23, 2026 9:40 am
by dragonzapedu
Do you have any idea the file that was changed that has resulted in faults going forward? That would help, you can paste the commit here that is responsible for that change

Re: Help Me

Posted: Mon Sep 21, 2026 5:16 am
by definedbehavior
In the file src/syscall/enable_syscall.c, try replace the line

Code: Select all

    star |= ((uint64_t)0x18 << 48) | ((uint64_t)0x08 << 32);
with

Code: Select all

    star |= ((uint64_t)0x1b << 48) | ((uint64_t)0x08 << 32);