Help Me

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nicolasbick11
Posts: 1
Joined: Thu Aug 20, 2026 7:45 am
Libera.chat IRC: nicolasbick11

Help Me

Post 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
dragonzapedu
Posts: 11
Joined: Mon Aug 17, 2026 4:09 am
Location: United Kingdom
GitHub: https://github.com/nibblebits
Contact:

Re: Help Me

Post 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
definedbehavior
Posts: 1
Joined: Sat May 09, 2026 9:54 pm
Libera.chat IRC: definedbehavior

Re: Help Me

Post 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);
Post Reply