system.hh (4762:c94e103c83ad) system.hh (7741:340b6f01d69b)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

106 /** functional port to partition description */
107 FunctionalPort funcPartDescPort;
108
109 protected:
110 const Params *params() const { return (const Params *)_params; }
111
112 /** Add a function-based event to reset binary. */
113 template <class T>
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

106 /** functional port to partition description */
107 FunctionalPort funcPartDescPort;
108
109 protected:
110 const Params *params() const { return (const Params *)_params; }
111
112 /** Add a function-based event to reset binary. */
113 template <class T>
114 T *addResetFuncEvent(const char *lbl)
114 T *
115 addResetFuncEvent(const char *lbl)
115 {
116 return addFuncEvent<T>(resetSymtab, lbl);
117 }
118
119 /** Add a function-based event to the hypervisor. */
120 template <class T>
116 {
117 return addFuncEvent<T>(resetSymtab, lbl);
118 }
119
120 /** Add a function-based event to the hypervisor. */
121 template <class T>
121 T *addHypervisorFuncEvent(const char *lbl)
122 T *
123 addHypervisorFuncEvent(const char *lbl)
122 {
123 return addFuncEvent<T>(hypervisorSymtab, lbl);
124 }
125
126 /** Add a function-based event to the openboot. */
127 template <class T>
124 {
125 return addFuncEvent<T>(hypervisorSymtab, lbl);
126 }
127
128 /** Add a function-based event to the openboot. */
129 template <class T>
128 T *addOpenbootFuncEvent(const char *lbl)
130 T *
131 addOpenbootFuncEvent(const char *lbl)
129 {
130 return addFuncEvent<T>(openbootSymtab, lbl);
131 }
132
132 {
133 return addFuncEvent<T>(openbootSymtab, lbl);
134 }
135
133 virtual Addr fixFuncEventAddr(Addr addr)
136 virtual Addr
137 fixFuncEventAddr(Addr addr)
134 {
135 //XXX This may eventually have to do something useful.
136 return addr;
137 }
138};
139
140#endif
141
138 {
139 //XXX This may eventually have to do something useful.
140 return addr;
141 }
142};
143
144#endif
145