Rev 3424 | Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3424 | Rev 3431 | ||
|---|---|---|---|
| Line 340... | Line 340... | ||
| 340 | unative_t dr6; |
340 | unative_t dr6; |
| 341 | int i; |
341 | int i; |
| 342 | 342 | ||
| 343 | dr6 = read_dr6(); |
343 | dr6 = read_dr6(); |
| 344 | 344 | ||
| - | 345 | #ifdef CONFIG_UDEBUG |
|
| 345 | if (dr6 & DR6_BS) { |
346 | if (dr6 & DR6_BS) { |
| 346 | if (THREAD && istate_from_uspace(istate)) { |
347 | if (THREAD && istate_from_uspace(istate)) { |
| 347 | /* |
348 | /* |
| 348 | * The userspace thread has TF set and executed |
349 | * The userspace thread has TF set and executed |
| 349 | * an instruction |
350 | * an instruction |
| 350 | */ |
351 | */ |
| 351 | udebug_trap_event(istate->eip); |
352 | udebug_trap_event(istate->eip); |
| 352 | return; |
353 | return; |
| 353 | } |
354 | } |
| 354 | } |
355 | } |
| - | 356 | #endif |
|
| 355 | 357 | ||
| 356 | /* Set RF to restart the instruction */ |
358 | /* Set RF to restart the instruction */ |
| 357 | #ifdef amd64 |
359 | #ifdef amd64 |
| 358 | istate->rflags |= RFLAGS_RF; |
360 | istate->rflags |= RFLAGS_RF; |
| 359 | #else |
361 | #else |