.section .boot_text, "ax", @progbits .code64 .global _entry64 _entry64: mov $global_descriptor_table_data, %rax mov %rax, %ss mov %rax, %ds mov %rax, %es mov %rax, %fs mov %rax, %gs xor %rax, %rax call invoke_global_constructors call main 1: hlt jmp 1b