summaryrefslogtreecommitdiff
path: root/kern/linux/linux_system.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-05-31 19:47:17 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-05-31 19:47:17 -0400
commitebd4aa6548a68d3711756cdfc47136c0880e4f46 (patch)
tree429c4a5d4eeb8583d14cbce42d79165930e8fdfb /kern/linux/linux_system.hh
parent93983de0cfa06e58f1d448782269ebd33341ae83 (diff)
downloadgem5-ebd4aa6548a68d3711756cdfc47136c0880e4f46.tar.xz
Added and cleaned up some comments
dev/tsunami_cchip.hh: clean up some comments kern/linux/linux_syscalls.cc: Cleaned up spacing of syscall numbers kern/linux/linux_system.hh: Added doxygen comments --HG-- extra : convert_revision : 23ecdaa92a208458dd5c5d3c68ac9012ce2690da
Diffstat (limited to 'kern/linux/linux_system.hh')
-rw-r--r--kern/linux/linux_system.hh41
1 files changed, 41 insertions, 0 deletions
diff --git a/kern/linux/linux_system.hh b/kern/linux/linux_system.hh
index b9f301c60..83775cb92 100644
--- a/kern/linux/linux_system.hh
+++ b/kern/linux/linux_system.hh
@@ -61,21 +61,46 @@ class AlphaArguments;
class LinuxSystem : public System
{
private:
+ /** Object pointer for the kernel code */
ElfObject *kernel;
+
+ /** Object pointer for the console code */
ElfObject *console;
+ /** kernel Symbol table */
SymbolTable *kernelSymtab;
+
+ /** console symbol table */
SymbolTable *consoleSymtab;
+ /** Event to halt the simulator if the kernel calls panic() */
BreakPCEvent *kernelPanicEvent;
+
+ /** Event to halt the simulator if the console calls panic() */
BreakPCEvent *consolePanicEvent;
+
+ /** Event to skip determine_cpu_caches() because we don't support the
+ * IPRs that the code can access to figure out cache sizes
+ */
SkipFuncEvent *skipCacheProbeEvent;
+
+ /** PC based event to skip the ide_delay_50ms() call */
SkipFuncEvent *skipIdeDelay50msEvent;
+
+ /** Skip calculate_delay_loop() rather than waiting for this to be
+ * calculated
+ */
LinuxSkipDelayLoopEvent *skipDelayLoopEvent;
+ /** Begining of kernel code */
Addr kernelStart;
+
+ /** End of kernel code */
Addr kernelEnd;
+
+ /** Entry point in the kernel to start at */
Addr kernelEntry;
+
bool bin;
std::vector<string> binned_fns;
@@ -101,9 +126,25 @@ class LinuxSystem : public System
int registerExecContext(ExecContext *xc);
void replaceExecContext(ExecContext *xc, int xcIndex);
+ /**
+ * Returns the addess the kernel starts at.
+ * @return address the kernel starts at
+ */
Addr getKernelStart() const { return kernelStart; }
+
+ /**
+ * Returns the addess the kernel ends at.
+ * @return address the kernel ends at
+ */
Addr getKernelEnd() const { return kernelEnd; }
+
+ /**
+ * Returns the addess the entry point to the kernel code.
+ * @return entry point of the kernel code
+ */
Addr getKernelEntry() const { return kernelEntry; }
+
+
bool breakpoint();
};