/** * \file windhoek/server/src/main.c * \brief Windhoek main function * * \date 2008-01-29 * \author Bjoern Doebel * * (c) 2008 Technische Universitaet Dresden * This file is part of DROPS, which is distributed under the terms of the * GNU General Public License 2. Please see the COPYING file for details. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "windhoek_local.h" #include extern int bdev_cache_init(void); extern int ide_generic_init(void); extern int ide_cdrom_init(void); extern int genhd_device_init(void); l4_threadid_t main_thread = L4_INVALID_ID; int main(int argc, const char **argv) { int err; l4dde26_init(); l4dde26_process_init(); l4dde26_init_timers(); l4dde26_softirq_init(); printk("DDE base system initialized.\n"); err = bdev_cache_init(); printk("Initialized blockdev caches. (%x)\n", err); gendisk_init(); client_state_init(); l4dde26_do_initcalls(); /* no generic driver, we use a dedicated one * XXX: make this a fallback if no other driver is found */ #if 0 err = ide_generic_init(); printk("Initialized generic IDE driver. (%x)\n", err); #endif err = names_register("windhoek"); printk("registered at names. \n", err); main_thread = l4_myself(); printk("+----------------------------------------+\n"); printk("| Windhoek block server |\n"); printk("| ready to rumble.... |\n"); printk("+----------------------------------------+\n"); windhoek_server_server_loop(NULL); l4_sleep_forever(); return 0; }