36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
This fix repairs a bug in the interpretation of the "MCD" boot variable.
|
|
Right now it simply doesn't work, so the Mitsumi driver is locked to
|
|
I/O 300, IRQ 10. (Note that this is a driver for the old and obsolete
|
|
proprietary Mitsumi interface. Newer Mitsumi devices are IDE, so don't
|
|
go to the trouble to patch mcd.c to find out that it won't work anyway.)
|
|
|
|
To apply this fix do the following as bin:
|
|
|
|
! cd /usr
|
|
! patch -p0 < "this-file"
|
|
|
|
And build a new kernel normally. You will find the original mcd.c file
|
|
renamed to mcd.c~ in src/kernel/. You may wish to delete it to clean
|
|
things up.
|
|
|
|
diff -c -r /save/std/2.0.0/src/kernel/mcd.c ./src/kernel/mcd.c
|
|
*** /save/std/2.0.0/src/kernel/mcd.c Fri Dec 08 17:23:23 1995
|
|
--- ./src/kernel/mcd.c Thu Dec 12 20:35:58 1996
|
|
***************
|
|
*** 199,205 ****
|
|
mcd_io_base = v;
|
|
|
|
v = MCD_IRQ;
|
|
! (void) env_parse(var, fmt, 0, &v, 0L, (long) NR_IRQ_VECTORS - 1);
|
|
mcd_irq = v;
|
|
|
|
driver_task(&mcd_dtab); /* Start driver task for cdrom */
|
|
--- 199,205 ----
|
|
mcd_io_base = v;
|
|
|
|
v = MCD_IRQ;
|
|
! (void) env_parse(var, fmt, 1, &v, 0L, (long) NR_IRQ_VECTORS - 1);
|
|
mcd_irq = v;
|
|
|
|
driver_task(&mcd_dtab); /* Start driver task for cdrom */
|