Repository navigation
Commit 6c81fe7
arm64: enable context tracking
Make calls to ct_user_enter when the kernel is exited
and ct_user_exit when the kernel is entered (in el0_da,
el0_ia, el0_svc, el0_irq and all of the "error" paths).
These macros expand to function calls which will only work
properly if el0_sync and related code has been rearranged
(in a previous patch of this series).
The calls to ct_user_exit are made after hw debugging has been
enabled (enable_dbg_and_irq).
The call to ct_user_enter is made at the beginning of the
kernel_exit macro.
This patch is based on earlier work by Kevin Hilman.
Save/restore optimizations were also done by Kevin.
Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Larry Bassel <larry.bassel@linaro.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>1 parent 6ab6463 commit 6c81fe7
3 files changed
Lines changed: 41 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
32 | 58 | | |
33 | 59 | | |
34 | 60 | | |
| |||
91 | 117 | | |
92 | 118 | | |
93 | 119 | | |
| 120 | + | |
94 | 121 | | |
95 | 122 | | |
96 | 123 | | |
| |||
426 | 453 | | |
427 | 454 | | |
428 | 455 | | |
| 456 | + | |
429 | 457 | | |
430 | 458 | | |
431 | 459 | | |
| |||
438 | 466 | | |
439 | 467 | | |
440 | 468 | | |
| 469 | + | |
441 | 470 | | |
442 | 471 | | |
443 | 472 | | |
| |||
448 | 477 | | |
449 | 478 | | |
450 | 479 | | |
| 480 | + | |
451 | 481 | | |
452 | 482 | | |
453 | 483 | | |
| |||
457 | 487 | | |
458 | 488 | | |
459 | 489 | | |
| 490 | + | |
460 | 491 | | |
461 | 492 | | |
462 | 493 | | |
| |||
479 | 510 | | |
480 | 511 | | |
481 | 512 | | |
| 513 | + | |
482 | 514 | | |
483 | 515 | | |
484 | 516 | | |
| |||
492 | 524 | | |
493 | 525 | | |
494 | 526 | | |
| 527 | + | |
495 | 528 | | |
496 | 529 | | |
497 | 530 | | |
| 531 | + | |
498 | 532 | | |
499 | 533 | | |
500 | 534 | | |
| |||
511 | 545 | | |
512 | 546 | | |
513 | 547 | | |
| 548 | + | |
514 | 549 | | |
515 | 550 | | |
516 | 551 | | |
| |||
615 | 650 | | |
616 | 651 | | |
617 | 652 | | |
| 653 | + | |
618 | 654 | | |
619 | 655 | | |
620 | 656 | | |
| |||
0 commit comments