
Instead of putting tinygo_scanCurrentStack in scheduler_*.S files, put them in dedicated files. The function tinygo_scanCurrentStack has nothing to do with scheduling and so doesn't belong there. Additionally, while scheduling code is made specific for the Cortex-M, the tinygo_scanCurrentStack is generic to all ARM targets so this move removes some duplication there. Specifically: * tinygo_scanCurrentStack is moved out of scheduler_cortexm.S as it isn't really part of the scheduler. It is now gc_arm.S. * Same for the AVR target. * Same for the RISCV target. * scheduler_gba.S is removed, using gc_arm.S instead as it only contains tinygo_scanCurrentStack.
19 строки
396 Б
JSON
19 строки
396 Б
JSON
{
|
|
"llvm-target": "avr-unknown-unknown",
|
|
"build-tags": ["avr", "baremetal", "linux", "arm"],
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"compiler": "avr-gcc",
|
|
"gc": "conservative",
|
|
"linker": "avr-gcc",
|
|
"scheduler": "none",
|
|
"default-stack-size": 256,
|
|
"ldflags": [
|
|
"-T", "targets/avr.ld",
|
|
"-Wl,--gc-sections"
|
|
],
|
|
"extra-files": [
|
|
"src/runtime/gc_avr.S",
|
|
"src/runtime/scheduler_avr.S"
|
|
]
|
|
}
|