x86 support!
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user