Kernel: Don't build with -mregparm=3

It was really confusing to have different calling conventions in kernel
and userspace. Also this has prevented us from linking with libgcc.
This commit is contained in:
Andreas Kling 2019-11-06 13:03:45 +01:00
commit 1c6f8d3cbd
Notes: sideshowbarker 2024-07-19 11:21:24 +09:00
6 changed files with 54 additions and 52 deletions

View file

@ -28,8 +28,9 @@ asm(
" popw %es\n"
" popw %fs\n"
" popw %gs\n"
" mov %esp, %eax\n"
" pushl %esp\n"
" call syscall_trap_entry\n"
" add $4, %esp\n"
" popw %gs\n"
" popw %gs\n"
" popw %fs\n"