public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd4ce3d
)
crt0_6809: Initialize stdio
author
Tormod Volden
<debian.tormod@gmail.com>
Tue, 21 Apr 2015 21:19:29 +0000
(23:19 +0200)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Library/libs/crt0_6809.s
b/Library/libs/crt0_6809.s
index
265e43c
..
c96c04c
100644
(file)
--- a/
Library/libs/crt0_6809.s
+++ b/
Library/libs/crt0_6809.s
@@
-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