Beispiel #1
0
uint16_t get_root_dev(void)
{
	uint16_t rd = BAD_ROOT_DEV;

	if (cmdline && *cmdline)
		rd = bootdevice(cmdline);

	while(rd == BAD_ROOT_DEV){
		kputs("bootdev: ");
		udata.u_base = (uint8_t *)bootline;
		udata.u_sysio = 1;
		udata.u_count = sizeof(bootline)-1;
		udata.u_euid = 0;		/* Always begin as superuser */

		cdread(TTYDEV, O_RDONLY);	/* read root filesystem name from tty */
		rd = bootdevice(bootline);
	}

	return rd;
}
Beispiel #2
0
DISC
uint8_t platform_param(char *p)
{
	if (!strcmp(p,"NODW") ){
	    dwtype = DWTYPE_NOTFOUND;
	    return -1;
	}
	if (!strncmp(p,"SWAP=",5)){
	    swapdev = bootdevice(p+5);
	    return -1;
	}
	return 0;
}