supply instance to 2nd at_wini instance.
requires a little cooperation from at_wini.
This commit is contained in:
parent
a12c7ad963
commit
ebde52a9bc
3 changed files with 4 additions and 3 deletions
|
@ -395,7 +395,7 @@ PRIVATE struct driver w_dtab = {
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
* at_winchester_task *
|
* at_winchester_task *
|
||||||
*===========================================================================*/
|
*===========================================================================*/
|
||||||
PUBLIC int main()
|
PUBLIC int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
/* Install signal handlers. Ask PM to transform signal into message. */
|
/* Install signal handlers. Ask PM to transform signal into message. */
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
@ -406,6 +406,7 @@ PUBLIC int main()
|
||||||
if (sigaction(SIGTERM,&sa,NULL)<0) panic("AT","sigaction failed", errno);
|
if (sigaction(SIGTERM,&sa,NULL)<0) panic("AT","sigaction failed", errno);
|
||||||
|
|
||||||
/* Set special disk parameters then call the generic main loop. */
|
/* Set special disk parameters then call the generic main loop. */
|
||||||
|
env_setargs(argc, argv);
|
||||||
init_params();
|
init_params();
|
||||||
signal(SIGTERM, SIG_IGN);
|
signal(SIGTERM, SIG_IGN);
|
||||||
driver_task(&w_dtab);
|
driver_task(&w_dtab);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "../libdriver/driver.h"
|
#include "../libdriver/driver.h"
|
||||||
#include "../libdriver/drvlib.h"
|
#include "../libdriver/drvlib.h"
|
||||||
|
|
||||||
_PROTOTYPE(int main, (void));
|
_PROTOTYPE(int main, (int argc, char *argv[]));
|
||||||
|
|
||||||
#define VERBOSE 0 /* display identify messages during boot */
|
#define VERBOSE 0 /* display identify messages during boot */
|
||||||
#define ENABLE_ATAPI 1 /* add ATAPI cd-rom support to driver */
|
#define ENABLE_ATAPI 1 /* add ATAPI cd-rom support to driver */
|
||||||
|
|
|
@ -8,7 +8,7 @@ then
|
||||||
/bin/service -c up /bin/bios_wini -dev /dev/c0d0
|
/bin/service -c up /bin/bios_wini -dev /dev/c0d0
|
||||||
else
|
else
|
||||||
/bin/service -c up /bin/at_wini -dev /dev/c0d0 -config /etc/drivers.conf -label at_wini_0
|
/bin/service -c up /bin/at_wini -dev /dev/c0d0 -config /etc/drivers.conf -label at_wini_0
|
||||||
/bin/service -c up /bin/at_wini -dev /dev/c1d0 -config /etc/drivers.conf -label at_wini_1
|
/bin/service -c up /bin/at_wini -dev /dev/c1d0 -config /etc/drivers.conf -label at_wini_1 -args ata_instance=1
|
||||||
#/bin/service -c up /bin/at_wini -dev /dev/c0d0 -script /etc/rs.single -config /etc/drivers.conf
|
#/bin/service -c up /bin/at_wini -dev /dev/c0d0 -script /etc/rs.single -config /etc/drivers.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue