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 * 115 addResetFuncEvent(const char *lbl) |
116 { 117 return addFuncEvent<T>(resetSymtab, lbl); 118 } 119 120 /** Add a function-based event to the hypervisor. */ 121 template <class T> |
122 T * 123 addHypervisorFuncEvent(const char *lbl) |
124 { 125 return addFuncEvent<T>(hypervisorSymtab, lbl); 126 } 127 128 /** Add a function-based event to the openboot. */ 129 template <class T> |
130 T * 131 addOpenbootFuncEvent(const char *lbl) |
132 { 133 return addFuncEvent<T>(openbootSymtab, lbl); 134 } 135 |
136 virtual Addr 137 fixFuncEventAddr(Addr addr) |
138 { 139 //XXX This may eventually have to do something useful. 140 return addr; 141 } 142}; 143 144#endif 145 |