Kludge for 1586 processor id.

This commit is contained in:
Ben Gras 2006-04-05 11:56:05 +00:00
parent 978feddf13
commit 9ee6aa8b7b
2 changed files with 5 additions and 3 deletions

View file

@ -843,7 +843,7 @@ void get_parameters(void)
{
char params[SECTOR_SIZE + 1];
token **acmds;
int r, bus;
int r, bus, processor;
memory *mp;
static char bus_type[][4] = {
"xt", "at", "mca"
@ -860,7 +860,9 @@ void get_parameters(void)
b_setvar(E_SPECIAL|E_VAR|E_DEV, "ramimagedev", "bootdev");
b_setvar(E_SPECIAL|E_VAR, "ramsize", "0");
#if BIOS
b_setvar(E_SPECIAL|E_VAR, "processor", ul2a10(getprocessor()));
processor = getprocessor();
if(processor == 1586) processor = 686;
b_setvar(E_SPECIAL|E_VAR, "processor", ul2a10(processor));
b_setvar(E_SPECIAL|E_VAR, "bus", bus_type[get_bus()]);
b_setvar(E_SPECIAL|E_VAR, "video", vid_type[get_video()]);
b_setvar(E_SPECIAL|E_VAR, "chrome", vid_chrome[get_video() & 1]);

View file

@ -3,7 +3,7 @@
MAKE = exec make -$(MAKEFLAGS)
BZIP2=bzip2-1.0.3
SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle ftp ftpd ftpd200 httpd ibm indent m4 make mdb mined patch pax ps reboot rlogind scripts sh simple syslogd talk talkd telnet telnetd urlget yap zmodem
SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle elvis ftp ftpd ftpd200 httpd ibm indent m4 make mdb mined patch pax ps reboot rlogind scripts sh simple syslogd talk talkd telnet telnetd urlget yap zmodem
usage:
@echo "Usage: make all # Compile all commands" >&2