mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Annotate kernel_base and friends as READONLY_AFTER_INIT
We don't want kernel_base to be modifiable by an attacker or a stray memory scribbler bug, so lets mark it as READONLY_AFTER_INIT.
This commit is contained in:
parent
fa448456a9
commit
8acbe03342
Notes:
sideshowbarker
2024-07-18 08:29:07 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/8acbe033427 Pull-request: https://github.com/SerenityOS/serenity/pull/8963
1 changed files with 3 additions and 3 deletions
|
@ -107,9 +107,9 @@ static Processor s_bsp_processor; // global but let's keep it "private"
|
|||
// init_stage2() function. Initialization continues there.
|
||||
|
||||
extern "C" {
|
||||
PhysicalAddress start_of_prekernel_image;
|
||||
PhysicalAddress end_of_prekernel_image;
|
||||
FlatPtr kernel_base;
|
||||
READONLY_AFTER_INIT PhysicalAddress start_of_prekernel_image;
|
||||
READONLY_AFTER_INIT PhysicalAddress end_of_prekernel_image;
|
||||
READONLY_AFTER_INIT FlatPtr kernel_base;
|
||||
#if ARCH(X86_64)
|
||||
PhysicalAddress boot_pml4t;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue