mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
cb1e49d3f6
commit
668b590876
2 changed files with 5 additions and 1 deletions
|
@ -51,8 +51,10 @@ _start:
|
|||
# la t0, trap_entry
|
||||
# csrw mtvec, t0
|
||||
|
||||
#ifdef HAVE_INITFINI_ARRAY
|
||||
# run global initialization functions
|
||||
call __libc_init_array
|
||||
#endif
|
||||
|
||||
# call main program routine
|
||||
call main
|
||||
|
|
|
@ -122,8 +122,10 @@ void __libc_fini_array (void) {
|
|||
// This function will be called by LIBC at program exit.
|
||||
// Since this platform only support statically linked programs,
|
||||
// it is not required to support LIBC's exit functions registration via atexit().
|
||||
void __funcs_on_exit() {
|
||||
void __funcs_on_exit (void) {
|
||||
#ifdef HAVE_INITFINI_ARRAY
|
||||
__libc_fini_array();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue