kernel: move drivers to own file
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
5d9e62e4a9
commit
b6c9e0a2ba
12 changed files with 83 additions and 22 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue