mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:11:20 +08:00
Add ordered Nexus devices
Add support for ordering the initialization of Nexus devices. This can be used to make sure a device is initialized before a dependant device.
This commit is contained in:

committed by
Sebastian Huber

parent
2c4840fba0
commit
ea395a736d
6
freebsd/sys/sys/linker_set.h
Normal file → Executable file
6
freebsd/sys/sys/linker_set.h
Normal file → Executable file
@@ -77,7 +77,11 @@
|
||||
|
||||
#define RTEMS_BSD_DEFINE_SET_ITEM(set, sym, type) \
|
||||
static type const __set_##set##_sym_##sym \
|
||||
__section(".rtemsroset.bsd." __STRING(set) ".content") __used
|
||||
__section(".rtemsroset.bsd." __STRING(set) ".content.1") __used
|
||||
|
||||
#define RTEMS_BSD_DEFINE_SET_ITEM_ORDERED(set, sym, order, type) \
|
||||
static type const __set_##set##_sym_##sym \
|
||||
__section(".rtemsroset.bsd." __STRING(set) ".content.0." RTEMS_XSTRING( order )) __used
|
||||
|
||||
#define __MAKE_SET(set, sym) \
|
||||
RTEMS_BSD_DEFINE_SET_ITEM(set, sym, const void *) = &sym
|
||||
|
Reference in New Issue
Block a user