From fda002a9da95e67cd59fb87cdb221573f27f3dfa Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 20 May 2017 13:59:08 +0200 Subject: [PATCH] define pointer to multiboot_info_t as const - we shouldn't change this pointer --- arch/x86/include/asm/multiboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/multiboot.h b/arch/x86/include/asm/multiboot.h index 5b8826a9a..53969da12 100644 --- a/arch/x86/include/asm/multiboot.h +++ b/arch/x86/include/asm/multiboot.h @@ -143,6 +143,6 @@ typedef struct multiboot_mod_list multiboot_module_t; /// Pointer to multiboot structure /// This pointer is declared at set by entry.asm -extern multiboot_info_t* mb_info; +extern const multiboot_info_t* const mb_info; #endif