This is probably not necessary on Espressif chips, but let's strictly
follow the ABI to be sure.
Этот коммит содержится в:
Ayke van Laethem 2023-01-10 21:02:09 +01:00 коммит произвёл Ayke
родитель 26b6d0b06d
коммит 35f427c8cc

Просмотреть файл

@ -9,9 +9,9 @@ const TargetBits = 32
const deferExtraRegs = 0 const deferExtraRegs = 0
// Align on a word boundary. // The largest alignment according to the Xtensa ABI is 8 (long long, double).
func align(ptr uintptr) uintptr { func align(ptr uintptr) uintptr {
return (ptr + 3) &^ 3 return (ptr + 7) &^ 7
} }
func getCurrentStackPointer() uintptr { func getCurrentStackPointer() uintptr {