mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Kernel: Move special sections into Sections.h
This also removes a lot of CPU.h includes infavor for Sections.h
This commit is contained in:
parent
925be2758e
commit
62f9377656
93 changed files with 104 additions and 34 deletions
12
Kernel/Sections.h
Normal file
12
Kernel/Sections.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Platform.h>
|
||||
|
||||
#define READONLY_AFTER_INIT __attribute__((section(".ro_after_init")))
|
||||
#define UNMAP_AFTER_INIT NEVER_INLINE __attribute__((section(".unmap_after_init")))
|
Loading…
Add table
Add a link
Reference in a new issue