From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Baldo Subject: Re: Dosemu cpu exception Date: Mon, 13 Apr 2009 18:53:05 -0300 Message-ID: <49E3B441.9030004@adinet.com.uy> References: <56412.194.109.241.111.1239659046.squirrel@webmail.xs4all.nl> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <56412.194.109.241.111.1239659046.squirrel@webmail.xs4all.nl> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Hans Bausewein Cc: The DOSEMU Team Hello Hans. There is a tracker at http://sourceforge.net/projects/dosemu , I=20 don't know if any DOSEmu developer reads this list so maybe it is more=20 effective to use the tracker there (or maybe not...). Thanks!!! Bye. El 13/04/09 18:44, Hans Bausewein escribi=F3: > Hello DOSEMU team, > > I could not find where to report bugs, so I hope this is a valid way. > > It seems that DOSEMU does not support newer CPU's. Maybe simply, beca= use > it was not updated since they arrived. I've checked the SVN version a= t > http://dosemu.svn.sourceforge.net/viewvc/dosemu/trunk/src/base/init/ > > > My /proc/cpuinfo says: > > vendor_id : AuthenticAMD > cpu family : 16 > model : 2 > model name : AMD Phenom(tm) 9550 Quad-Core Processor > > > The > > switch (get_proc_intvalue_by_key( > kernel_version_code > 0x20100+74 ? "cpu family" : "cpu" )) = { > > in src/base/init/config.c tests for values 5, 6, 586, 686, 15. > > The result is that config.cpu_spd is zero, which causes a "Division b= y > zero" on booting dos. > > > > If you run dosemu with options > -h0 -O > it dumps the configuration to stderr. > > It dumps (among a lot else): > CPUclock infMHz > > That is a (poorly formatted) "infinity" result of the division: > > (((double)LLF_US)/config.cpu_spd) > > in src/base/init/config.c > > Adding a case 16 to the switch statement solves this. It reports the = CPU > speed as 2210.17 MHz > > It also makes my DOSEMU boot. I'm not sure whether it's completely OK= , yet. > See the attached patch to the 1.4.0 version. > > There are more newer processors around. Here's number 17 in this Ubun= tu > bug report: > > https://lists.ubuntu.com/archives/universe-bugs/2009-January/036704.h= tml > > Hans > > > =20 --=20 Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ =46rom Montevideo, Uruguay, at the south of South America. =46reelance programmer and GNU/Linux system administrator, hire me! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html