From 127808bbd67a63a498af8b28ef434b52e3b50086 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 31 Mar 2015 22:50:35 +0100 Subject: [PATCH] start: allow for platforms that have one possible boot device If so dump all the bootdevice requesting stuff and just go --- Kernel/start.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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) { -- 2.34.1