/** * driver_init - initialize driver model. * * Call the driver model init functions to initialize their * subsystems. Called early from init/main.c. */ void __init driver_init(void) { printk(KERN_INFO "%s, devtmpfs_init\n", __FILE__); printk(KERN_INFO "%s, devices_init\n", __FILE__); printk(KERN_INFO "%s, buses_init\n", __FILE__); printk(KERN_INFO "%s, classes_init\n", __FILE__); printk(KERN_INFO "%s, firmware_init\n", __FILE__); printk(KERN_INFO "%s, hypervisor_init\n", __FILE__); printk(KERN_INFO "%s, platform_bus_init\n", __FILE__); printk(KERN_INFO "%s, cpu_dev_init\n", __FILE__); printk(KERN_INFO "%s, memory_dev_init\n", __FILE__); /* These are the core pieces */ devtmpfs_init(); devices_init(); buses_init(); classes_init(); firmware_init(); hypervisor_init(); /* These are also core pieces, but must come after the * core core pieces. */ platform_bus_init(); cpu_dev_init(); memory_dev_init(); }
void kmain(void) { task_t *task_shell; int ret; /*************** Init Arch ****************/ arch_early_init(); show_logo(); /*************** Init Platform ****************/ platform_init(); timer_init(); buses_init(); /*************** Init Task ****************/ task_init(); task_create_init(); /*************** Init Workqueu ****************/ init_workqueues(); /*************** Init File System ****************/ register_filesystem(&fat_fs); /*************** Creating Shell TASK ****************/ task_shell = task_alloc("shell", 0x2000, 5); if (NULL == task_shell) { return; } ret = task_create(task_shell, init_shell, 0); if (ret) { printk("Create init shell task failed\n"); } sema_init(&sem, 1); arch_enable_ints(); while(1) { enter_critical_section(); arch_idle(); task_schedule(); exit_critical_section(); } task_free(task_shell); }
void __init driver_init(void) { /* These are the core pieces */ devices_init(); buses_init(); classes_init(); firmware_init(); /* These are also core pieces, but must come after the * core core pieces. */ platform_bus_init(); system_bus_init(); cpu_dev_init(); }
/** * driver_init - initialize driver model. * * Call the driver model init functions to initialize their * subsystems. Called early from init/main.c. */ void __init driver_init(void) { /* These are the core pieces */ devtmpfs_init(); devices_init(); buses_init(); classes_init(); firmware_init(); hypervisor_init(); /* These are also core pieces, but must come after the * core core pieces. */ platform_bus_init(); cpu_dev_init(); memory_dev_init(); container_dev_init(); of_core_init(); }
void __init driver_init(void) { /* These are the core pieces */ devices_init(); buses_init(); classes_init(); #ifndef DDE_LINUX firmware_init(); hypervisor_init(); #endif /* These are also core pieces, but must come after the * core core pieces. */ platform_bus_init(); #ifndef DDE_LINUX system_bus_init(); cpu_dev_init(); memory_dev_init(); attribute_container_init(); #endif }