asm: Add missing section directives

This commit is contained in:
mintsuki 2023-06-20 13:24:49 +02:00
parent 2d6a1e4535
commit 2ac43a320f
12 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,5 @@
.section .text
.global efi_main
.extern uefi_entry

View File

@ -1,3 +1,5 @@
section .text
global efi_main
extern uefi_entry
efi_main:

View File

@ -1,3 +1,4 @@
.section .text
.global efi_main
.extern uefi_entry

View File

@ -1,3 +1,5 @@
section .text
global efi_main
extern uefi_entry
efi_main:

View File

@ -1,3 +1,5 @@
section .text
global memcpy32to64
memcpy32to64:
push ebp

View File

@ -1,5 +1,7 @@
#include <lib/macros.aarch64_asm.h>
.section .text
// noreturn void enter_in_current_el(uint64_t entry, uint64_t sp, uint64_t sctlr,
// uint64_t target_x0)
// Configure current EL state and jump to kernel. Used for Linux hence

View File

@ -1,3 +1,5 @@
section .text
global menu
extern _menu
menu:

View File

@ -1,3 +1,5 @@
section .text
extern lapic_eoi
global dummy_isr

View File

@ -1,3 +1,5 @@
section .text
extern lapic_eoi
global dummy_isr

View File

@ -1,3 +1,4 @@
.section .text
.global sbicall
sbicall:

View File

@ -8,6 +8,8 @@
.set tpl_sctlr, -16
.set tpl_info_struct, -8
.section .text
.global smp_trampoline_start
smp_trampoline_start:
bl .L_entry
@ -94,6 +96,8 @@ smp_trampoline_start:
smp_trampoline_end:
.section .rodata
.global smp_trampoline_size
smp_trampoline_size:
.quad smp_trampoline_end - smp_trampoline_start

View File

@ -1,3 +1,4 @@
.section .text
.global smp_trampoline_start
smp_trampoline_start: