requires a little cooperation from at_wini.
/*===========================================================================*
* at_winchester_task *
*===========================================================================*/
-PUBLIC int main()
+PUBLIC int main(int argc, char *argv[])
{
/* Install signal handlers. Ask PM to transform signal into message. */
struct sigaction sa;
if (sigaction(SIGTERM,&sa,NULL)<0) panic("AT","sigaction failed", errno);
/* Set special disk parameters then call the generic main loop. */
+ env_setargs(argc, argv);
init_params();
signal(SIGTERM, SIG_IGN);
driver_task(&w_dtab);
#include "../libdriver/driver.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 ENABLE_ATAPI 1 /* add ATAPI cd-rom support to driver */
/bin/service -c up /bin/bios_wini -dev /dev/c0d0
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/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
fi