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 .global efi_main
.extern uefi_entry .extern uefi_entry

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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