bits 32
section .text
    align   4
    dd      0x1BADB002
    dd      0x00
    dd    - (0x1BADB002 + 0x00)

global start
extern main

start:
    cli
    mov     esp, kstack
    call    main
    hlt

section .bss
resb    8192
kstack:

bits 32
section .text
    align   4
    dd      0x1BADB002
    dd      0x00
    dd    - (0x1BADB002 + 0x00)

global start
extern entry

start:
    cli
    mov     esp, kstack
    call    entry
    hlt

section .bss
resb    8192
kstack:

Change name of entry function
Change name of entry function

Magical-Chicken/simple-x86-kernel,Magical-Chicken/simple-x86-kernel