kernel_stats.hh (4120:3e09b5d32c45) kernel_stats.hh (5086:e7913ffb379d)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

--- 44 unchanged lines hidden (view full) ---

53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 *
55 * Authors: Gabe Black
56 */
57
58#ifndef __ARCH_X86_KERNELSTATS_HH__
59#define __ARCH_X86_KERNELSTATS_HH__
60
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

--- 44 unchanged lines hidden (view full) ---

53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 *
55 * Authors: Gabe Black
56 */
57
58#ifndef __ARCH_X86_KERNELSTATS_HH__
59#define __ARCH_X86_KERNELSTATS_HH__
60
61#error X86 is not yet supported!
61#include "kern/kernel_stats.hh"
62
62
63namespace X86ISA
63namespace X86ISA {
64namespace Kernel {
65
66enum cpu_mode {
67 ring0,
68 ring1,
69 ring2,
70 ring3,
71 kernel = ring0,
72 user = ring3,
73 idle,
74 //What is this next one for?
75 cpu_mode_num
76};
77
78extern const char *modestr[];
79
80class Statistics : public ::Kernel::Statistics
64{
81{
82 public:
83 Statistics(System * system) : ::Kernel::Statistics(system)
84 {}
65};
66
85};
86
87}
88}
89
67#endif // __ARCH_X86_KERNELSTATS_HH__
90#endif // __ARCH_X86_KERNELSTATS_HH__