Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix user programs requiring an explicit exit syscall #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kayomn
Copy link

@kayomn kayomn commented Nov 15, 2022

Resolves the issue where user programs need to explicitly call the exit system call before returning from main or else they will never exit.

@@ -96,3 +96,11 @@ void* memmove(void *vdst, const void *vsrc, int n) {
}
return vdst;
}


__attribute__((noreturn))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a note, this GCC annotation can be removed should you wish as it's already inferred by calling exit inside the function itself.

@kayomn kayomn changed the title Fix user programs require explicit exit syscall Fix user programs requiring an explicit exit syscall Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant