aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/scripts
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-01 00:33:56 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-01 00:33:56 +0200
commit5ce5c28e0f0f034cb7c704f08e59089ef303ff7e (patch)
tree6340aef7cee1948d3b6321e83f8c5976ef192180 /arch/x86_64/scripts
parent2c9b29799dbf6a706d235d79a3257fc9a42d12d3 (diff)
downloadkernel-5ce5c28e0f0f034cb7c704f08e59089ef303ff7e.tar.xz
kernel-5ce5c28e0f0f034cb7c704f08e59089ef303ff7e.zip
kapi: add automatic driver registrationHEADdevelop
Diffstat (limited to 'arch/x86_64/scripts')
-rw-r--r--arch/x86_64/scripts/kernel.ld11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86_64/scripts/kernel.ld b/arch/x86_64/scripts/kernel.ld
index dbb0f8f0..f621c3f1 100644
--- a/arch/x86_64/scripts/kernel.ld
+++ b/arch/x86_64/scripts/kernel.ld
@@ -75,9 +75,20 @@ SECTIONS
. = ALIGN(8);
+ /* Filesystem driver factories */
PROVIDE(__start_fs_types = .);
KEEP(*(fs_types));
PROVIDE(__stop_fs_types = .);
+
+ /* Kernel driver factories */
+ PROVIDE(__start_kernel_drivers = .);
+ KEEP(*(kernel_drivers));
+ PROVIDE(__stop_kernel_drivers = .);
+
+ /* Platform driver factories */
+ PROVIDE(__start_platform_drivers = .);
+ KEEP(*(platform_drivers));
+ PROVIDE(__stop_platform_drivers = .);
} :kernel_rodata
.kernel_data ALIGN(4K) : AT (ADDR (.kernel_data) - TEACHOS_VMA)