Kernel: Implement thread start trampoline for userspace

This is needed on i686 to set segment registers.
This commit is contained in:
2024-04-03 00:42:39 +03:00
parent 4d70322eab
commit fe386fa819
4 changed files with 49 additions and 12 deletions

View File

@@ -2,6 +2,11 @@
.global _start
_start:
pushq $0
pushq %rdi
pushq %rsi
pushq %rdx
# STACK LAYOUT
# null
# argc