few forgotten changes for dprintk

SConscript:
    Added printk to scons
kern/linux/linux_system.cc:
kern/linux/printk.cc:
    Forgot to commit this dprintk change

--HG--
extra : convert_revision : d9a71835b55ece7e84b34632ee6646ac2d0535da
This commit is contained in:
Ali Saidi 2004-07-31 00:55:05 -04:00
parent b376c6f420
commit d616b2cb5e
3 changed files with 12 additions and 4 deletions

View file

@ -259,6 +259,7 @@ full_system_sources = Split('''
kern/linux/linux_events.cc
kern/linux/linux_syscalls.cc
kern/linux/linux_system.cc
kern/linux/printk.cc
kern/tru64/dump_mbuf.cc
kern/tru64/printf.cc
kern/tru64/tru64_events.cc

View file

@ -28,10 +28,11 @@
/**
* @file
* loads the linux kernel, console, pal and patches certain functions.
* The symbol tables are loaded so that traces can show the executing
* function and we can skip functions. Various delay loops are skipped
* and their final values manually computed to speed up boot time.
* This code loads the linux kernel, console, pal and patches certain
* functions. The symbol tables are loaded so that traces can show
* the executing function and we can skip functions. Various delay
* loops are skipped and their final values manually computed to speed
* up boot time.
*/
#include "base/loader/aout_object.hh"
@ -129,6 +130,8 @@ LinuxSystem::LinuxSystem(const string _name, const uint64_t _init_param,
skipCacheProbeEvent = new SkipFuncEvent(&pcEventQueue,
"determine_cpu_caches");
debugPrintkEvent = new DebugPrintkEvent(&pcEventQueue, "dprintk");
Addr addr = 0;
/**
@ -236,6 +239,9 @@ LinuxSystem::LinuxSystem(const string _name, const uint64_t _init_param,
if (kernelSymtab->findAddress("determine_cpu_caches", addr))
skipCacheProbeEvent->schedule(addr+sizeof(MachInst));
if (kernelSymtab->findAddress("dprintk", addr))
debugPrintkEvent->schedule(addr+sizeof(MachInst)*2);
}
LinuxSystem::~LinuxSystem()

View file

@ -34,6 +34,7 @@
#include "sim/host.hh"
#include "targetarch/arguments.hh"
#include "targetarch/vtophys.hh"
#include "kern/linux/printk.hh"
using namespace std;