- fix [ 628663 ] double panic from cmos get_timeval. As Volker said :

The cmos function get_timeval is only used by the pc_system
  to print the last system time on exit. We should remove the
  STUBFUNC() macro and simply return 0.
This commit is contained in:
Christophe Bothamy 2002-11-11 22:01:08 +00:00
parent 052ee134b7
commit e359cfc5d3

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// $Id: iodev.h,v 1.22 2002-11-09 20:51:40 vruppert Exp $ // $Id: iodev.h,v 1.23 2002-11-11 22:01:08 cbothamy Exp $
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2002 MandrakeSoft S.A. // Copyright (C) 2002 MandrakeSoft S.A.
@ -167,7 +167,8 @@ class BOCHSAPI bx_cmos_stub_c : public bx_devmodel_c {
STUBFUNC(cmos, set_reg); STUBFUNC(cmos, set_reg);
} }
virtual time_t get_timeval() { virtual time_t get_timeval() {
STUBFUNC(cmos, get_timeval); return 0; // STUBFUNC(cmos, get_timeval);
return 0;
} }
virtual void checksum_cmos(void) { virtual void checksum_cmos(void) {
STUBFUNC(cmos, checksum); STUBFUNC(cmos, checksum);