mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
arm7tdmi: clean up architecture definition
This commit is contained in:
committed by
Ron Evans
parent
e356bad4d1
commit
9b1dd8e03d
@@ -1,7 +1,9 @@
|
||||
// +build arm,!baremetal
|
||||
// +build arm,!baremetal arm,arm7tdmi
|
||||
|
||||
package runtime
|
||||
|
||||
import "device/arm"
|
||||
|
||||
const GOARCH = "arm"
|
||||
|
||||
// The bitness of the CPU (e.g. 8, 32, 64).
|
||||
@@ -11,3 +13,7 @@ const TargetBits = 32
|
||||
func align(ptr uintptr) uintptr {
|
||||
return (ptr + 3) &^ 3
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr {
|
||||
return arm.ReadRegister("sp")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user