kernel: move drivers to own file

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-11 21:09:36 -04:00
commit b6c9e0a2ba
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
12 changed files with 83 additions and 22 deletions

View file

@ -28,9 +28,6 @@
_panic(); \
}
#define DRIVER_ENTRY(fn) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall"))) = fn
#define DRIVER_ENTRY_PRIORITY(fn, pr) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall." #pr))) = fn
#define CLEANUP(fn) __attribute__((__cleanup__(fn)))
void yield();