Commit 7f2a1f1
Dimitar Dimitrov
libgloss: pru: Add support for older PRU cores
Do not use FILL/ZERO instructions in CRT0 and syscalls. These
instructions are not supported by older PRU cores in AM18xx SoCs.
Avoiding FILL/ZERO does increase the code size a bit, but it has no
impact on real projects because:
- syscalls.S is used only by firmware built for the GNU Simulator.
- Real firmware projects are supposed to use crt0-min.S, which is not
impacted.
- crt0.S is intended to be full-featured, so that can be used for
regression testing GCC using GNU Simulator.
An alternative would be to add a special crt0-am18xx.S variant, but that
would add unnecessary complexity.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>1 parent a373d2c commit 7f2a1f1
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments