diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-01-23 21:55:01 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-01-23 21:55:01 +0100 |
commit | 288a78a5d276028363b80de158df372ee688f918 (patch) | |
tree | 0e7e1e7c4c4afd4dabe75655cbea1b2014b2a166 /linux/dev | |
parent | f1a10a0a939c1ba0a996464317722fff31967647 (diff) | |
download | gnumach-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.c | 5 |
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 (); |