From 51532336b0684b2fb53a8c45b6fa88c058f3618b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 11 Aug 2023 00:26:12 +0300 Subject: [PATCH] Kernel: Move structures in boot.S to .data section --- kernel/arch/x86_64/boot.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/arch/x86_64/boot.S b/kernel/arch/x86_64/boot.S index ed5199820..d481707ac 100644 --- a/kernel/arch/x86_64/boot.S +++ b/kernel/arch/x86_64/boot.S @@ -47,7 +47,7 @@ g_multiboot_magic: .skip 8 -.section .text +.section .data # Map first GiB to 0x00000000 and 0xFFFFFFFF80000000 .align 4096 @@ -83,6 +83,8 @@ boot_gdtr: .short . - boot_gdt - 1 .quad V2P(boot_gdt) +.section .text + has_cpuid: pushfl pushfl