diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-04 15:38:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-16 15:34:46 +0100 |
commit | 5084ad89e4690c1a375172c6a28c738530c5c4c2 (patch) | |
tree | afe7848f223cba02c6ded9336fca0f90efc45694 /freebsd/sys/kern/init_main.c | |
parent | Add support for M68K (diff) | |
download | rtems-libbsd-5084ad89e4690c1a375172c6a28c738530c5c4c2.tar.bz2 |
Simplify linker set handling
Diffstat (limited to '')
-rw-r--r-- | freebsd/sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/sys/kern/init_main.c b/freebsd/sys/kern/init_main.c index 40fcacbf..88f5f685 100644 --- a/freebsd/sys/kern/init_main.c +++ b/freebsd/sys/kern/init_main.c @@ -122,9 +122,7 @@ SYSINIT(placeholder, SI_SUB_DUMMY, SI_ORDER_ANY, NULL, NULL); * The sysinit table itself. Items are checked off as the are run. * If we want to register new sysinit types, add them to newsysinit. */ -#endif /* __rtems__ */ SET_DECLARE(sysinit_set, struct sysinit); -#ifndef __rtems__ struct sysinit **sysinit, **sysinit_end; struct sysinit **newsysinit, **newsysinit_end; @@ -162,6 +160,8 @@ sysinit_add(struct sysinit **set, struct sysinit **set_end) newsysinit = newset; newsysinit_end = newset + count; } +#else /* __rtems__ */ +RWSET_DECLARE(sysinit_set, struct sysinit); #endif /* __rtems__ */ #if defined (DDB) && defined(VERBOSE_SYSINIT) |