From: Alan Cox Date: Tue, 2 Oct 2018 12:06:35 +0000 (+0100) Subject: start: avoid generating GSINIT code for the kernel X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=be8f3e36b085651a9ee0bf71a5d8e738bb2b934e;p=FUZIX.git start: avoid generating GSINIT code for the kernel --- diff --git a/Kernel/start.c b/Kernel/start.c index 1f4d8bcc..f54ee750 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -301,10 +301,10 @@ uint16_t get_root_dev(void) } #else +static uint8_t first = 1; + inline uint16_t get_root_dev(void) { - static uint8_t first = 1; - if (first) { first = 0; return BOOTDEVICE;