mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
runtime: add dummy getCurrentStackPointer functions
This is useful for the next commit, to get it to compile on all systems.
This commit is contained in:
committed by
Ron Evans
parent
9b1dd8e03d
commit
db4de46d88
@@ -9,3 +9,5 @@ const TargetBits = 32
|
||||
func align(ptr uintptr) uintptr {
|
||||
return (ptr + 3) &^ 3
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr
|
||||
|
||||
@@ -11,3 +11,5 @@ const TargetBits = 64
|
||||
func align(ptr uintptr) uintptr {
|
||||
return (ptr + 15) &^ 15
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr
|
||||
|
||||
@@ -9,3 +9,5 @@ const TargetBits = 64
|
||||
func align(ptr uintptr) uintptr {
|
||||
return (ptr + 7) &^ 7
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr
|
||||
|
||||
@@ -12,3 +12,5 @@ func align(ptr uintptr) uintptr {
|
||||
// No alignment necessary on the AVR.
|
||||
return ptr
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr
|
||||
|
||||
@@ -28,3 +28,5 @@ const wasmPageSize = 64 * 1024
|
||||
func align(ptr uintptr) uintptr {
|
||||
return (ptr + 3) &^ 3
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr
|
||||
|
||||
Reference in New Issue
Block a user