public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f65b8d
)
start: allow for platforms that have one possible boot device
author
Alan Cox
<alan@linux.intel.com>
Tue, 31 Mar 2015 21:50:35 +0000
(22:50 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 31 Mar 2015 21:50:35 +0000
(22:50 +0100)
If so dump all the bootdevice requesting stuff and just go
Kernel/start.c
patch
|
blob
|
history
diff --git
a/Kernel/start.c
b/Kernel/start.c
index
1fdacc7
..
2d6e25e
100644
(file)
--- 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)
{