aboutsummaryrefslogtreecommitdiff
path: root/linux/dev
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-23 21:55:01 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-23 21:55:01 +0100
commit288a78a5d276028363b80de158df372ee688f918 (patch)
tree0e7e1e7c4c4afd4dabe75655cbea1b2014b2a166 /linux/dev
parentf1a10a0a939c1ba0a996464317722fff31967647 (diff)
downloadgnumach-288a78a5d276028363b80de158df372ee688f918.tar.gz
gnumach-288a78a5d276028363b80de158df372ee688f918.tar.bz2
gnumach-288a78a5d276028363b80de158df372ee688f918.zip
linux: Add noide and noahci kernel options
They were meant to be temporary, but that got longer, and people seem to expect them to be there now.
Diffstat (limited to 'linux/dev')
-rw-r--r--linux/dev/glue/block.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c
index 6855a231..a8307813 100644
--- a/linux/dev/glue/block.c
+++ b/linux/dev/glue/block.c
@@ -206,7 +206,10 @@ int
blk_dev_init ()
{
#ifdef CONFIG_BLK_DEV_IDE
- ide_init ();
+ extern char *kernel_cmdline;
+ if (strncmp(kernel_cmdline, "noide", 5) &&
+ !strstr(kernel_cmdline, " noide"))
+ ide_init ();
#endif
#ifdef CONFIG_BLK_DEV_FD
floppy_init ();