From 9909b52074167afe8860b0bcc5d40223fbed3599 Mon Sep 17 00:00:00 2001 From: Jacob Garby Date: Tue, 12 Sep 2017 19:13:21 +0100 Subject: [PATCH] Moved initialized data to the .data section Tested, and still works perfectly. --- kernel.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel.asm b/kernel.asm index 3b48409..5d000d9 100644 --- a/kernel.asm +++ b/kernel.asm @@ -2,13 +2,13 @@ ; License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html bits 32 -section .text +section .data ;multiboot spec align 4 dd 0x1BADB002 ;magic dd 0x00 ;flags dd - (0x1BADB002 + 0x00) ;checksum. m+f+c should be zero - +section .text global start extern kmain ;this is defined in the c file