Quellcode durchsuchen

Kernel: Mark a few more things as READONLY_AFTER_INIT

Gunnar Beutner vor 4 Jahren
Ursprung
Commit
8642c831cf
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      Kernel/init.cpp

+ 6 - 6
Kernel/init.cpp

@@ -111,13 +111,13 @@ READONLY_AFTER_INIT PhysicalAddress start_of_prekernel_image;
 READONLY_AFTER_INIT PhysicalAddress end_of_prekernel_image;
 READONLY_AFTER_INIT PhysicalAddress end_of_prekernel_image;
 READONLY_AFTER_INIT FlatPtr kernel_base;
 READONLY_AFTER_INIT FlatPtr kernel_base;
 #if ARCH(X86_64)
 #if ARCH(X86_64)
-PhysicalAddress boot_pml4t;
+READONLY_AFTER_INIT PhysicalAddress boot_pml4t;
 #endif
 #endif
-PhysicalAddress boot_pdpt;
-PhysicalAddress boot_pd0;
-PhysicalAddress boot_pd_kernel;
-PageTableEntry* boot_pd_kernel_pt1023;
-const char* kernel_cmdline;
+READONLY_AFTER_INIT PhysicalAddress boot_pdpt;
+READONLY_AFTER_INIT PhysicalAddress boot_pd0;
+READONLY_AFTER_INIT PhysicalAddress boot_pd_kernel;
+READONLY_AFTER_INIT PageTableEntry* boot_pd_kernel_pt1023;
+READONLY_AFTER_INIT const char* kernel_cmdline;
 }
 }
 
 
 extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
 extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)