summaryrefslogtreecommitdiffstats
path: root/apps/init/arch/x86_64/start.c
blob: 8329523b8e3e9ff5ec39be358c50828593b910d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
extern void main(void*);

__attribute__((section(".text.start")))
__attribute__((naked))
void
_start(void)
{
    __asm__ volatile("\
            popq %%rdi; \
            jmp main"::);        
}