diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-09-30 13:34:43 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-09-30 13:34:43 -0400 |
commit | b08436c674f4ae05f21066159cbfb8843a1b8a96 (patch) | |
tree | d1933093cf902c7ffd014ae01c1054fc7e2eda43 | |
parent | 6e17280ce4a7491a82ff7c0911902a67c14732fb (diff) | |
download | gem5-b08436c674f4ae05f21066159cbfb8843a1b8a96.tar.xz |
Clean up some formatting
kern/linux/linux_system.cc:
remove random character
kern/linux/linux_threadinfo.hh:
Formatting fixes
--HG--
extra : convert_revision : 2be4772d7455ea1f4eb22966e00831701b7cbc27
-rw-r--r-- | kern/linux/linux_system.cc | 2 | ||||
-rw-r--r-- | kern/linux/linux_threadinfo.hh | 87 |
2 files changed, 44 insertions, 45 deletions
diff --git a/kern/linux/linux_system.cc b/kern/linux/linux_system.cc index addce0389..1144b9bdd 100644 --- a/kern/linux/linux_system.cc +++ b/kern/linux/linux_system.cc @@ -121,7 +121,7 @@ LinuxSystem::LinuxSystem(Params *p) #endif /** -v * Any time ide_delay_50ms, calibarte_delay or + * Any time ide_delay_50ms, calibarte_delay or * determine_cpu_caches is called just skip the * function. Currently determine_cpu_caches only is used put * information in proc, however if that changes in the future we diff --git a/kern/linux/linux_threadinfo.hh b/kern/linux/linux_threadinfo.hh index 253b122bc..0c60b9f5c 100644 --- a/kern/linux/linux_threadinfo.hh +++ b/kern/linux/linux_threadinfo.hh @@ -26,64 +26,63 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef __LINUX_TREADNIFO_HH__ -#define __LINUX_TREADNIFO_HH__ +#ifndef __KERN_LINUX_LINUX_TREADNIFO_HH__ +#define __KERN_LINUX_LINUX_TREADNIFO_HH__ - -#include "targetarch/vptr.hh" #include "kern/linux/thread_info.hh" #include "kern/linux/sched.hh" - +#include "targetarch/vptr.hh" namespace Linux { class ThreadInfo { - private: - ExecContext *xc; + private: + ExecContext *xc; - public: - ThreadInfo(ExecContext *exec) : xc(exec) {} - ~ThreadInfo() {} + public: + ThreadInfo(ExecContext *exec) : xc(exec) {} + ~ThreadInfo() {} - inline VPtr<thread_info> - curThreadInfo() - { - Addr current; + inline VPtr<thread_info> + curThreadInfo() + { + Addr current; - /* Each kernel stack is only 2 pages, the start of which is the - * thread_info struct. So we can get the address by masking off - * the lower 14 bits. - */ - current = xc->regs.intRegFile[StackPointerReg] & ~0x3fff; - return VPtr<thread_info>(xc, current); - } + /* Each kernel stack is only 2 pages, the start of which is the + * thread_info struct. So we can get the address by masking off + * the lower 14 bits. + */ + current = xc->regs.intRegFile[StackPointerReg] & ~0x3fff; + return VPtr<thread_info>(xc, current); + } - inline VPtr<task_struct> - curTaskInfo() - { - Addr task = curThreadInfo()->task; - return VPtr<task_struct>(xc, task); - } + inline VPtr<task_struct> + curTaskInfo() + { + Addr task = curThreadInfo()->task; + return VPtr<task_struct>(xc, task); + } - std::string - curTaskName() - { - return curTaskInfo()->name; - } + std::string + curTaskName() + { + return curTaskInfo()->name; + } - int32_t - curTaskPID() - { - return curTaskInfo()->pid; - } + int32_t + curTaskPID() + { + return curTaskInfo()->pid; + } - uint64_t - curTaskStart() - { - return curTaskInfo()->start; - } + uint64_t + curTaskStart() + { + return curTaskInfo()->start; + } }; -} -#endif /* __LINUX_THREADINFO_HH__ */ +/* namespace Linux */ } + +#endif // __KERN_LINUX_LINUX_THREADINFO_HH__ |