- add ResetCpus and ResetSystem methods

This commit is contained in:
Christophe Bothamy 2004-04-08 20:56:36 +00:00
parent 3d85db14cc
commit 5b3100151a
2 changed files with 24 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: pc_system.cc,v 1.35 2004-01-17 15:51:08 vruppert Exp $
// $Id: pc_system.cc,v 1.36 2004-04-08 20:56:34 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -212,13 +212,31 @@ bx_pc_system_c::ResetSignal( PCS_OP operation )
UNUSED( operation );
// Reset the processor.
BX_ERROR(( "# bx_pc_system_c::ResetSignal() called" ));
BX_ERROR(( "bx_pc_system_c::ResetSignal() called" ));
for (int i=0; i<BX_SMP_PROCESSORS; i++)
BX_CPU(i)->reset(BX_RESET_SOFTWARE);
DEV_reset_devices(BX_RESET_SOFTWARE);
return(0);
}
int
bx_pc_system_c::ResetCpus( unsigned type )
{
BX_INFO(( "bx_pc_system_c::ResetCpus() called" ));
for (int i=0; i<BX_SMP_PROCESSORS; i++)
BX_CPU(i)->reset(type);
return(0);
}
int
bx_pc_system_c::ResetSystem( unsigned type )
{
BX_INFO(( "bx_pc_system_c::ResetSystem() called" ));
for (int i=0; i<BX_SMP_PROCESSORS; i++)
BX_CPU(i)->reset(type);
DEV_reset_devices(type);
return(0);
}
Bit8u
bx_pc_system_c::IAC(void)

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: pc_system.h,v 1.26 2004-01-17 15:51:08 vruppert Exp $
// $Id: pc_system.h,v 1.27 2004-04-08 20:56:36 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2004 MandrakeSoft S.A.
@ -200,4 +200,7 @@ public:
bx_bool get_enable_a20(void);
void exit(void);
// Cpu and System Reset
int ResetCpus( unsigned type );
int ResetSystem( unsigned type );
};