URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [newlib/] [libgloss/] [d30v/] [crt0.S] - Rev 1782
Compare with Previous | Blame | View Log
/** crt0.S -- startup file for D30V systems.** Copyright (c) 1997 Cygnus Support** The authors hereby grant permission to use, copy, modify, distribute,* and license this software and its documentation for any purpose, provided* that existing copyright notices are retained in all copies and that this* notice is included verbatim in any distributions. No written agreement,* license, or royalty fee is required for any of the authorized uses.* Modifications to this software may be copyrighted by their authors* and need not follow the licensing terms described here, provided that* the new terms are clearly indicated on the first page of each file where* they apply.*/.file "crt0.S".text.globl _start.extern main.extern exit.extern __stack.extern __sbss_start.extern __sbss_end.extern __ebss_start.extern __ebss_end.extern __bss_start.extern __bss_end.extern memset.type _start,@function_start: or.l sp,r0,__stack/* Zero the .sbss area */or.l r2,r0,__sbss_startor.l r4,r0,__sbss_endsub r4,r4,r2 || or.s r3,r0,0bsrtnz.l r4,(memset)/* Zero the .ebss area */or.l r2,r0,__ebss_startor.l r4,r0,__ebss_endsub r4,r4,r2 || or.s r3,r0,0bsrtnz.l r4,(memset)/* Zero the .bss area */or.l r2,r0,__bss_startor.l r4,r0,__bss_endsub r4,r4,r2 || or.s r3,r0,0bsrtnz.l r4,(memset)or.s r2,r0,0 || or.s r3,r0,0or r4,r0,0 || nopjsr.l (main)jsr.l (exit).size _start,.-_start
