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

Some question about libc_start? #6

Open
a74731248 opened this issue Jun 18, 2022 · 4 comments
Open

Some question about libc_start? #6

a74731248 opened this issue Jun 18, 2022 · 4 comments

Comments

@a74731248
Copy link

Hi, could you tell me where the libc_start function located? I wanna know how hermitux to execute a user‘s application, could you please give me some help?

@olivierpierre
Copy link
Collaborator

Hi, this is where we prepare and perform the jump to the application's entry point:

int main(int argc, char** argv) {

@a74731248
Copy link
Author

When vcpu run in hermitux, where is the code to jump to there?

@olivierpierre
Copy link
Collaborator

@a74731248
Copy link
Author

https://github.com/ssrg-vt/hermitux-kernel/blob/master/arch/x86/kernel/entry.asm#L45

_start finally will call the hermit_main and initialize Hermitux , I mean after Hermitux initialization done, how the vcpu jump to application's entry point from Hermitux?

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

No branches or pull requests

2 participants