From: Alan Cox Date: Tue, 31 Mar 2015 21:50:35 +0000 (+0100) Subject: start: allow for platforms that have one possible boot device X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=127808bbd67a63a498af8b28ef434b52e3b50086;p=FUZIX.git start: allow for platforms that have one possible boot device If so dump all the bootdevice requesting stuff and just go --- diff --git a/Kernel/start.c b/Kernel/start.c index 1fdacc70..2d6e25e3 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -83,6 +83,8 @@ void create_init(void) udata.u_argn2 = (arg_t)(PROGLOAD + 0xb); /* Environment (none) */ } +#ifndef BOOTDEVICE + /* Parse boot device name, based on platform defined BOOTDEVICENAMES string. * * This string is a list of device driver names delimited by commas. Device @@ -218,6 +220,13 @@ uint16_t get_root_dev(void) return rd; } +#else + +inline uint16_t get_root_dev(void) +{ + return BOOTDEVICE; +} +#endif void fuzix_main(void) {