x86 support!

This commit is contained in:
veclavtlica
2026-10-08 10:50:42 +03:00
parent 3db75378c4
commit dc594e5e82
5 changed files with 126 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
/* No libc starting point. Jump straight into action! */
__attribute__((naked)) __attribute__((force_align_arg_pointer))
__attribute__((noreturn)) extern void
_start(void) {
__asm__ volatile("xor %rbp, %rbp\n"
"movq (%rsp), %rdi\n"
"leaq 8(%rsp), %rsi\n"
"call plr_display_x11_main\n"
"movq %rax, %rdi\n"
"movq $60, %rax\n"
"syscall");
}