X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=src%2Fstdlib%2F__init_stack.S;fp=src%2Fstdlib%2F__init_stack.S;h=9a23291445e8c5c1c53e669155c63b87dff56056;hb=6f720ff00773571c2fa2d35e67bff68547617639;hp=0000000000000000000000000000000000000000;hpb=807b2dd5b7365eb87b482197af3b4a3f520c14f7;p=msp430-libc.git diff --git a/src/stdlib/__init_stack.S b/src/stdlib/__init_stack.S new file mode 100644 index 0000000..9a23291 --- /dev/null +++ b/src/stdlib/__init_stack.S @@ -0,0 +1,14 @@ +/***************************************************************** + * Set stack pointer + * can be overwriten by user function with the same name + *****************************************************************/ + .section .init2, "ax", @progbits + + .weak __init_stack + .func __init_stack + +__init_stack: + mov #__stack, r1 ; stack always located on first 64K, so 430 instruction + ; is acceptable here for 430X core too. + + .endfunc