Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 1 | #include <libpdbg.h> |
| 2 | |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 3 | #include <analyzer/analyzer_main.hpp> |
Ben Tyner | b797b3e | 2020-06-29 10:12:05 -0500 | [diff] [blame] | 4 | #include <attn/attention.hpp> |
| 5 | #include <attn/attn_config.hpp> |
| 6 | #include <attn/attn_handler.hpp> |
| 7 | #include <attn/attn_logging.hpp> |
| 8 | #include <attn/bp_handler.hpp> |
| 9 | #include <attn/ti_handler.hpp> |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 10 | |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 11 | #include <algorithm> |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 12 | #include <iomanip> |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 13 | #include <map> |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 14 | #include <sstream> |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 15 | #include <vector> |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 16 | |
| 17 | namespace attn |
| 18 | { |
| 19 | |
| 20 | /** |
| 21 | * @brief Handle SBE vital attention |
| 22 | * |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 23 | * @param i_attention Attention object |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 24 | * @return 0 indicates that the vital attention was successfully handled |
| 25 | * 1 indicates that the vital attention was NOT successfully handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 26 | */ |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 27 | int handleVital(Attention* i_attention); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 28 | |
| 29 | /** |
| 30 | * @brief Handle checkstop attention |
| 31 | * |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 32 | * @param i_attention Attention object |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 33 | * @return 0 indicates that the checkstop attention was successfully handled |
| 34 | * 1 indicates that the checkstop attention was NOT successfully |
| 35 | * handled. |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 36 | */ |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 37 | int handleCheckstop(Attention* i_attention); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 38 | |
| 39 | /** |
| 40 | * @brief Handle special attention |
| 41 | * |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 42 | * @param i_attention Attention object |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 43 | * @return 0 indicates that the special attention was successfully handled |
| 44 | * 1 indicates that the special attention was NOT successfully handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 45 | */ |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 46 | int handleSpecial(Attention* i_attention); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 47 | |
| 48 | /** |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 49 | * @brief The main attention handler logic |
Ben Tyner | 970fd4f | 2020-02-19 13:46:42 -0600 | [diff] [blame] | 50 | * |
| 51 | * @param i_breakpoints true = breakpoint special attn handling enabled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 52 | */ |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 53 | void attnHandler(Config* i_config) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 54 | { |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 55 | // Vector of active attentions to be handled |
| 56 | std::vector<Attention> active_attentions; |
| 57 | |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 58 | uint32_t isr_val, isr_mask; |
| 59 | uint32_t proc; |
| 60 | |
| 61 | // loop through processors looking for active attentions |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 62 | trace<level::INFO>("Attention handler started"); |
Ben Tyner | 117af99 | 2020-05-22 13:32:11 -0500 | [diff] [blame] | 63 | |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 64 | pdbg_target* target; |
| 65 | pdbg_for_each_class_target("fsi", target) |
| 66 | { |
| 67 | if (PDBG_TARGET_ENABLED == pdbg_target_probe(target)) |
| 68 | { |
| 69 | proc = pdbg_target_index(target); // get processor number |
| 70 | |
| 71 | std::stringstream ss; // log message stream |
Ben Tyner | 9dbab8b | 2020-03-31 08:55:23 -0500 | [diff] [blame] | 72 | ss << "checking processor " << proc; |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 73 | trace<level::INFO>(ss.str().c_str()); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 74 | |
| 75 | // get active attentions on processor |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 76 | if (RC_SUCCESS != fsi_read(target, 0x1007, &isr_val)) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 77 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 78 | // event |
| 79 | eventAttentionFail(RC_CFAM_ERROR); |
| 80 | |
| 81 | // trace |
| 82 | trace<level::INFO>("Error! cfam read 0x1007 FAILED"); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 83 | } |
| 84 | else |
| 85 | { |
| 86 | std::stringstream ss; // log message stream |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 87 | ss << "cfam 0x1007 = 0x"; |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 88 | ss << std::hex << std::setw(8) << std::setfill('0'); |
Ben Tyner | 9dbab8b | 2020-03-31 08:55:23 -0500 | [diff] [blame] | 89 | ss << isr_val; |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 90 | trace<level::INFO>(ss.str().c_str()); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 91 | |
| 92 | // get interrupt enabled special attentions mask |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 93 | if (RC_SUCCESS != fsi_read(target, 0x100d, &isr_mask)) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 94 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 95 | // event |
| 96 | eventAttentionFail(RC_CFAM_ERROR); |
| 97 | |
| 98 | // trace |
| 99 | trace<level::INFO>("Error! cfam read 0x100d FAILED"); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 100 | } |
| 101 | else |
| 102 | { |
Ben Tyner | 46b456b | 2020-07-07 12:30:08 -0500 | [diff] [blame^] | 103 | // CFAM 0x100d is expected to have bits set corresponding |
| 104 | // to attentions that can generate an attention interrupt. |
| 105 | // We will trace this register value to help debug cases |
| 106 | // where the attention handler was invoked unexpectedly. |
| 107 | |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 108 | std::stringstream ss; // log message stream |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 109 | ss << "cfam 0x100d = 0x"; |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 110 | ss << std::hex << std::setw(8) << std::setfill('0'); |
Ben Tyner | 9dbab8b | 2020-03-31 08:55:23 -0500 | [diff] [blame] | 111 | ss << isr_mask; |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 112 | trace<level::INFO>(ss.str().c_str()); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 113 | |
| 114 | // bit 0 on "left": bit 30 = SBE vital attention |
Ben Tyner | 46b456b | 2020-07-07 12:30:08 -0500 | [diff] [blame^] | 115 | if (isr_val & 0x00000002) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 116 | { |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 117 | active_attentions.emplace_back( |
| 118 | Attention::Vital, handleVital, target, i_config); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | // bit 0 on "left": bit 1 = checkstop |
Ben Tyner | 46b456b | 2020-07-07 12:30:08 -0500 | [diff] [blame^] | 122 | if (isr_val & 0x40000000) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 123 | { |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 124 | active_attentions.emplace_back(Attention::Checkstop, |
| 125 | handleCheckstop, target, |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 126 | i_config); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | // bit 0 on "left": bit 2 = special attention |
Ben Tyner | 46b456b | 2020-07-07 12:30:08 -0500 | [diff] [blame^] | 130 | if (isr_val & 0x20000000) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 131 | { |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 132 | active_attentions.emplace_back(Attention::Special, |
| 133 | handleSpecial, target, |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 134 | i_config); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 135 | } |
| 136 | } // cfam 0x100d valid |
| 137 | } // cfam 0x1007 valid |
| 138 | } // fsi target enabled |
| 139 | } // next processor |
| 140 | |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 141 | // convert to heap, highest priority is at front |
| 142 | if (!std::is_heap(active_attentions.begin(), active_attentions.end())) |
| 143 | { |
| 144 | std::make_heap(active_attentions.begin(), active_attentions.end()); |
| 145 | } |
| 146 | |
| 147 | // call the attention handler until one is handled or all were attempted |
| 148 | while (false == active_attentions.empty()) |
| 149 | { |
| 150 | // handle highest priority attention, done if successful |
| 151 | if (RC_SUCCESS == active_attentions.front().handle()) |
| 152 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 153 | // an attention was handled so we are done |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 154 | break; |
| 155 | } |
| 156 | |
| 157 | // move attention to back of vector |
| 158 | std::pop_heap(active_attentions.begin(), active_attentions.end()); |
| 159 | |
| 160 | // remove attention from vector |
| 161 | active_attentions.pop_back(); |
| 162 | } |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 163 | } |
| 164 | |
| 165 | /** |
| 166 | * @brief Handle SBE vital attention |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 167 | * |
| 168 | * @param i_attention Attention object |
| 169 | * @return 0 indicates that the vital attention was successfully handled |
| 170 | * 1 indicates that the vital attention was NOT successfully handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 171 | */ |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 172 | int handleVital(Attention* i_attention) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 173 | { |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 174 | int rc = RC_SUCCESS; // assume vital handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 175 | |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 176 | trace<level::INFO>("vital handler started"); |
| 177 | |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 178 | // if vital handling enabled, handle vital attention |
| 179 | if (false == (i_attention->getConfig()->getFlag(enVital))) |
| 180 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 181 | trace<level::INFO>("vital handling disabled"); |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 182 | rc = RC_NOT_HANDLED; |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 183 | } |
| 184 | else |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 185 | { |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 186 | eventVital(); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 187 | } |
| 188 | |
| 189 | return rc; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * @brief Handle checkstop attention |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 194 | * |
| 195 | * @param i_attention Attention object |
| 196 | * @return 0 indicates that the checkstop attention was successfully handled |
| 197 | * 1 indicates that the checkstop attention was NOT successfully |
| 198 | * handled. |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 199 | */ |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 200 | int handleCheckstop(Attention* i_attention) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 201 | { |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 202 | int rc = RC_SUCCESS; // assume checkstop handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 203 | |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 204 | trace<level::INFO>("checkstop handler started"); |
| 205 | |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 206 | // if checkstop handling enabled, handle checkstop attention |
| 207 | if (false == (i_attention->getConfig()->getFlag(enCheckstop))) |
| 208 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 209 | trace<level::INFO>("Checkstop handling disabled"); |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 210 | } |
| 211 | else |
| 212 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 213 | // errors that were isolated |
| 214 | std::map<std::string, std::string> errors; |
| 215 | |
Ben Tyner | dbeaf79 | 2020-05-14 08:27:18 -0500 | [diff] [blame] | 216 | // analyze errors |
| 217 | if (true != analyzer::analyzeHardware(errors)) |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 218 | { |
| 219 | rc = RC_ANALYZER_ERROR; |
| 220 | } |
| 221 | else |
| 222 | { |
| 223 | std::stringstream ss; |
| 224 | ss << "Analyzer isolated " << errors.size() << " error(s)"; |
| 225 | trace<level::INFO>(ss.str().c_str()); |
| 226 | |
| 227 | // add checkstop event to log |
| 228 | eventCheckstop(errors); |
| 229 | } |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 230 | } |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 231 | |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 232 | return rc; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * @brief Handle special attention |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 237 | * |
| 238 | * @param i_attention Attention object |
| 239 | * @return 0 indicates that the special attention was successfully handled |
| 240 | * 1 indicates that the special attention was NOT successfully handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 241 | */ |
Ben Tyner | b481d90 | 2020-03-05 10:24:23 -0600 | [diff] [blame] | 242 | int handleSpecial(Attention* i_attention) |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 243 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 244 | int rc = RC_SUCCESS; // assume special attention handled |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 245 | |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 246 | // The TI infor chipop will give us a pointer to the TI info data |
| 247 | uint8_t* tiInfo = nullptr; // ptr to TI info data |
| 248 | uint32_t tiInfoLen = 0; // length of TI info data |
| 249 | pdbg_target* tiInfoTarget = i_attention->getTarget(); // get TI info target |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 250 | |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 251 | // Get length and location of TI info data |
| 252 | sbe_mpipl_get_ti_info(tiInfoTarget, &tiInfo, &tiInfoLen); |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 253 | |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 254 | // Note: If we want to support running this application on architectures |
| 255 | // of different endian-ness we need to handler that here. The TI data |
| 256 | // will always be written in big-endian order. |
| 257 | |
| 258 | // If TI area exists and is marked valid we can assume TI occurred |
| 259 | if ((nullptr != tiInfo) && (0 != tiInfo[0])) |
Ben Tyner | 970fd4f | 2020-02-19 13:46:42 -0600 | [diff] [blame] | 260 | { |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 261 | TiDataArea* tiDataArea = (TiDataArea*)tiInfo; |
Ben Tyner | 7e6611f | 2020-02-13 16:42:56 -0600 | [diff] [blame] | 262 | |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 263 | // trace a few known TI data area values |
| 264 | std::stringstream ss; // log message stream |
| 265 | ss << "TI data command = " << tiDataArea->command; |
| 266 | trace<level::INFO>(ss.str().c_str()); |
| 267 | ss << "TI data SRC format = " << tiDataArea->srcFormat; |
| 268 | trace<level::INFO>(ss.str().c_str()); |
| 269 | ss << "TI data hb_terminate_type = " << tiDataArea->hbTerminateType; |
| 270 | trace<level::INFO>(ss.str().c_str()); |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 271 | |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 272 | if (true == (i_attention->getConfig()->getFlag(enTerminate))) |
| 273 | { |
| 274 | trace<level::INFO>("TI (terminate immediately)"); |
| 275 | |
| 276 | // Call TI special attention handler |
| 277 | rc = tiHandler(tiDataArea); |
| 278 | } |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 279 | } |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 280 | // TI area not valid, assume breakpoint |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 281 | else |
| 282 | { |
| 283 | if (true == (i_attention->getConfig()->getFlag(enBreakpoints))) |
| 284 | { |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 285 | trace<level::INFO>("breakpoint"); |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 286 | |
| 287 | // Call the breakpoint special attention handler |
| 288 | bpHandler(); |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 289 | } |
Ben Tyner | 970fd4f | 2020-02-19 13:46:42 -0600 | [diff] [blame] | 290 | } |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 291 | |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 292 | // release TI data buffer |
| 293 | if (nullptr != tiInfo) |
| 294 | { |
| 295 | free(tiInfo); |
| 296 | } |
| 297 | |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 298 | if (RC_SUCCESS != rc) |
| 299 | { |
Ben Tyner | 792f32f | 2020-06-02 08:50:47 -0500 | [diff] [blame] | 300 | trace<level::INFO>("Special attn not handled"); |
Ben Tyner | 3fb52e5 | 2020-03-31 10:10:07 -0500 | [diff] [blame] | 301 | } |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 302 | |
| 303 | return rc; |
| 304 | } |
| 305 | |
Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame] | 306 | } // namespace attn |