mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
runtime: refactor initialization code
Let each target handle its own initialization/finalization sequence instead of providing one in the runtime with hooks for memory initialization etc. This is much more flexible although it causes a little bit of code duplication.
This commit is contained in:
@@ -40,9 +40,6 @@ func preinit() {
|
||||
}
|
||||
}
|
||||
|
||||
func postinit() {
|
||||
}
|
||||
|
||||
func abort() {
|
||||
for {
|
||||
arm.Asm("wfi")
|
||||
|
||||
Reference in New Issue
Block a user