| 277 | * @brief 中断线程处理结构体 |
| 278 | */ |
| 279 | struct InterruptWork { |
| 280 | using WorkHandler = void (*)(InterruptWork*); |
| 281 | |
| 282 | /// 中断号 |
| 283 | uint64_t interrupt_no{0}; |
| 284 | /// 中断上下文 |
| 285 | cpu_io::TrapContext* data{nullptr}; |
| 286 | /// 时间戳 |
| 287 | uint64_t timestamp{0}; |
| 288 | |
| 289 | /// 工作处理函数 |
| 290 | WorkHandler handler{nullptr}; |
| 291 | }; |
| 292 | |
| 293 | /// 中断工作队列 |
| 294 | using InterruptWorkQueue = |
nothing calls this directly
no outgoing calls
no test coverage detected