Move core system initialization references

This commit is contained in:
Sebastian Huber 2013-10-09 14:29:38 +02:00
parent 58c4fda800
commit f3b2913422
4 changed files with 7 additions and 12 deletions

View File

@ -27,14 +27,6 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <sys/kernel.h> #include <sys/kernel.h>
#define SYSINIT_NEED_FREEBSD_CORE \
SYSINIT_REFERENCE(configure1); \
SYSINIT_REFERENCE(module); \
SYSINIT_REFERENCE(kobj); \
SYSINIT_REFERENCE(linker_kernel); \
SYSINIT_MODULE_REFERENCE(rootbus); \
SYSINIT_DRIVER_REFERENCE(nexus, root)
#define SYSINIT_NEED_USB_CORE \ #define SYSINIT_NEED_USB_CORE \
SYSINIT_REFERENCE(usb_quirk_init); \ SYSINIT_REFERENCE(usb_quirk_init); \
SYSINIT_DRIVER_REFERENCE(uhub, usbus) SYSINIT_DRIVER_REFERENCE(uhub, usbus)

View File

@ -49,6 +49,13 @@
#include <rtems/bsd/bsd.h> #include <rtems/bsd/bsd.h>
SYSINIT_REFERENCE(configure1);
SYSINIT_REFERENCE(module);
SYSINIT_REFERENCE(kobj);
SYSINIT_REFERENCE(linker_kernel);
SYSINIT_MODULE_REFERENCE(rootbus);
SYSINIT_DRIVER_REFERENCE(nexus, root);
/* In FreeBSD this is a local function */ /* In FreeBSD this is a local function */
void mi_startup(void); void mi_startup(void);

View File

@ -39,9 +39,6 @@
* We "read" that and generate references and nexus devices * We "read" that and generate references and nexus devices
*/ */
#if defined(CONFIGURE_NEED_NET)
SYSINIT_NEED_FREEBSD_CORE;
#endif
#if defined(CONFIGURE_NEED_USB) #if defined(CONFIGURE_NEED_USB)
SYSINIT_NEED_USB_CORE; SYSINIT_NEED_USB_CORE;
#endif #endif

View File

@ -36,7 +36,6 @@
#define NEED_SDHC #define NEED_SDHC
#endif #endif
SYSINIT_NEED_FREEBSD_CORE;
SYSINIT_NEED_USB_CORE; SYSINIT_NEED_USB_CORE;
#ifdef NEED_USB_OHCI #ifdef NEED_USB_OHCI
SYSINIT_NEED_USB_OHCI; SYSINIT_NEED_USB_OHCI;