diff options
author | Ayke van Laethem <[email protected]> | 2019-10-31 13:08:43 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-11-01 16:25:41 +0100 |
commit | b884db81ea11d8396483818c77327d5d6ebe69c2 (patch) | |
tree | 8a219b2a55e8d13c180b782e863871271ff1d04a /src/device | |
parent | 41df9648a8c0f2286b3a5b5a9d3f5341122b06f4 (diff) | |
download | tinygo-b884db81ea11d8396483818c77327d5d6ebe69c2.tar.gz tinygo-b884db81ea11d8396483818c77327d5d6ebe69c2.zip |
cortexm: move SemihostingCall impl to the right asm file
This is the more correct location. The targets/cortex-m.s file is really
just for qemu, not for Cortex-M in general.
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/arm/cortexm.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/device/arm/cortexm.s b/src/device/arm/cortexm.s index 29d6a2691..3335c4c93 100644 --- a/src/device/arm/cortexm.s +++ b/src/device/arm/cortexm.s @@ -19,3 +19,12 @@ HardFault_Handler: // Continue handling this error in Go. bl handleHardFault + +// This is a convenience function for semihosting support. +// At some point, this should be replaced by inline assembly. +.section .text.SemihostingCall +.global SemihostingCall +.type SemihostingCall, %function +SemihostingCall: + bkpt 0xab + bx lr |