1 #include <xen/init.h>
2 #include <xen/lib.h>
3 
4 typedef void (*ctor_func_t)(void);
5 extern const ctor_func_t __ctors_start[], __ctors_end[];
6 
init_constructors(void)7 void __init init_constructors(void)
8 {
9     const ctor_func_t *f;
10     for ( f = __ctors_start; f < __ctors_end; ++f )
11         (*f)();
12 
13     /* Putting this here seems as good (or bad) as any other place. */
14     BUILD_BUG_ON(sizeof(size_t) != sizeof(ssize_t));
15 }
16 
17 /*
18  * Local variables:
19  * mode: C
20  * c-file-style: "BSD"
21  * c-basic-offset: 4
22  * tab-width: 4
23  * indent-tabs-mode: nil
24  * End:
25  */
26