Commit daeb695
committed
RISC-V: fix xTaskReturnAddress type
xTaskReturnAddress holds a [function] pointer, never an integer address.
Use a proper exclusive function pointer type for this variable.
Furthermore, use NULL instead of 0 for an invalid function pointer value
This typedef could be made more generic for FreeRTOS-Kernel and not
just for RISC-V; vApplicationTaskExit used to be declared/defined in
previous versions and ideally could just be brought back.
Signed-off-by: Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>1 parent 4785ae7 commit daeb695
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments