version 1.5, 2007/10/23 13:32:01 |
version 1.6, 2007/11/01 13:19:27 |
|
|
/* attach root; should never fail */ |
/* attach root; should never fail */ |
retval = drp->dr_attach(rootdev, 0, 0); |
retval = drp->dr_attach(rootdev, 0, 0); |
|
|
if (retval == -1) |
if (retval != 0) |
panic("failed to attach rootdev\n"); |
panic("failed to attach rootdev\n"); |
/* NOTREACHED */ |
/* NOTREACHED */ |
|
|
|
|
|
|
/* try to attach this device */ |
/* try to attach this device */ |
retval = drp->dr_attach(cdevp, aip->ai_locator, aip->ai_flags); |
retval = drp->dr_attach(cdevp, aip->ai_locator, aip->ai_flags); |
if (retval == -1) { |
if (retval != 0) { |
/* |
/* |
* Attachment failed. |
* Attachment failed. |
*/ |
*/ |