crt0_6809: Initialize stdio
authorTormod Volden <debian.tormod@gmail.com>
Tue, 21 Apr 2015 21:19:29 +0000 (23:19 +0200)
committerAlan Cox <alan@linux.intel.com>
Tue, 21 Apr 2015 22:47:49 +0000 (23:47 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Library/libs/crt0_6809.s

index 265e43c..c96c04c 100644 (file)
@@ -1,5 +1,6 @@
                .module crt0
 
+               .globl ___stdio_init_vars
                .globl _main
                .globl _exit
                .globl _environ
@@ -27,6 +28,7 @@ start:                jmp start2
 
 start2:
                ; we don't clear BSS since the kernel already did
+               jsr ___stdio_init_vars
 
                ; pass environ, argc and argv to main
                ; pointers and data stuffed above stack by execve()
@@ -39,4 +41,6 @@ start2:
                pshs y
                jmp _main               ; go
 
+               .area .data
+
 _environ:      .dw 0