-
Notifications
You must be signed in to change notification settings - Fork 305
Newlib - exit() crash #50
Comments
Is something in crt0.c required for this? Should syscalls.c exit() have a fflush(stdout)? |
The standard C // exit -- Exit a program without cleaning up files
int _exit(int val)
{
exit(val);
return (-1);
} The call to the standard C This |
One possible (but probably horrible) solution would be to call the command line in exit()... |
Actually, since the description of the Note that this would be a minimal implementation that should be improved in the future: most users expect operating systems to clean up files for them on a standard C Refer to section 7.20.4.4 of the C99 standard for more information on the standard C requirements of the |
I'm not sure if this will compile, but it should be close to the general solution for a minimal implementation (note the // exit -- Exit a program without cleaning up files
void _exit(int val)
{
asm volatile ("call os_command_line");
} The |
Please have a look at #83 for some possible solutions. |
Calls to exit() cause a GP fault.
The text was updated successfully, but these errors were encountered: