diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-19 14:41:18 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-19 14:41:18 +0200 |
commit | 8ccd78e202c6f6e29b3ca30604b71323a4bfef8c (patch) | |
tree | 8dd395b5f6496727097177fec6fdc84816950f18 | |
parent | ebce94f7a478b0af49412deadac2fbb18c88a27a (diff) |
loader: fix comments
-rw-r--r-- | src/loader.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/loader.c b/src/loader.c index 7e2a472..79dc3fb 100644 --- a/src/loader.c +++ b/src/loader.c @@ -165,13 +165,13 @@ raw_start(void *entry, int argc, const char *argv[]) // XXX: make this part of the linker when it's rewritten #if ANDROID_X86_LINKER __asm__("mov 2*4(%ebp),%eax"); /* entry */ - __asm__("mov 3*4(%ebp),%ecx"); /* original_argc */ - __asm__("mov 4*4(%ebp),%edx"); /* original_argv */ - __asm__("mov %edx,%esp"); /* Trim stack. */ - __asm__("push %edx"); /* New argv */ - __asm__("push %ecx"); /* New argc */ + __asm__("mov 3*4(%ebp),%ecx"); /* argc */ + __asm__("mov 4*4(%ebp),%edx"); /* argv */ + __asm__("mov %edx,%esp"); /* trim stack. */ + __asm__("push %edx"); /* push argv */ + __asm__("push %ecx"); /* push argc */ __asm__("sub %edx,%edx"); /* no rtld_fini function */ - __asm__("jmp *%eax"); /* Goto entry. */ + __asm__("jmp *%eax"); /* goto entry */ #else warnx("raw_start not implemented for this asm platform, can't execute binaries."); #endif |