From 810dcca1d105aade81156c8adf0a91b641d35590 Mon Sep 17 00:00:00 2001 From: Erik Hallnor Date: Sat, 2 Oct 2004 12:34:54 -0400 Subject: [PATCH] Fixes to kernel to get checkpoints to work again. kern/kernel_stats.cc: Serialize idleProcess. kern/system_events.cc: Remove the idle start event once it runs. --HG-- extra : convert_revision : 05ac574558a88b86ccfce963e4ca9b037a1a8509 --- kern/kernel_stats.cc | 2 ++ kern/system_events.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/kern/kernel_stats.cc b/kern/kernel_stats.cc index c08ee08f7..c0443aa90 100644 --- a/kern/kernel_stats.cc +++ b/kern/kernel_stats.cc @@ -294,6 +294,7 @@ Statistics::serialize(ostream &os) { int exemode = themode; SERIALIZE_SCALAR(exemode); + SERIALIZE_SCALAR(idleProcess); } void @@ -301,6 +302,7 @@ Statistics::unserialize(Checkpoint *cp, const string §ion) { int exemode; UNSERIALIZE_SCALAR(exemode); + UNSERIALIZE_SCALAR(idleProcess); themode = (cpu_mode)exemode; } diff --git a/kern/system_events.cc b/kern/system_events.cc index b6526d193..9acf2f65a 100644 --- a/kern/system_events.cc +++ b/kern/system_events.cc @@ -70,6 +70,7 @@ void IdleStartEvent::process(ExecContext *xc) { xc->kernelStats->setIdleProcess(xc->regs.ipr[AlphaISA::IPR_PALtemp23]); + remove(); } void -- 2.30.2