• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionafeb48d30197f13f717cf0f6d6792dd5e7cd2d0d (tree)
Time2022-11-30 13:01:03
AuthorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

update uClibc_main arguments

Change Summary

Incremental Difference

--- a/libc/sysdeps/linux/rx/crt1.S
+++ b/libc/sysdeps/linux/rx/crt1.S
@@ -26,15 +26,24 @@
2626
2727 .text
2828
29- /* r1: argc */
30- /* r2: argv */
31- /* r3: envp */
29+/*
30+void __uClibc_main(int (*main)(int, char **, char **), int argc,
31+ char **argv, void (*app_init)(void), void (*app_fini)(void)
32+ ,
33+ void (*rtld_fini)(void), void *stack_end attribute_unused)
34+*/
3235 _start:
36+ mov.l r0,[-r0]
37+ mov.l #0,r1
38+ mov.l r1,[-r0]
39+ mov.l r1,[-r0]
40+ mov.l #main, r1
41+ mov.l #0,r4
3342 bsr __uClibc_main
3443
3544 /* If that didn't kill us, ... */
3645 __exit:
37- mov.l #1,r8 /* NR_exit */
46+ mov.l #1,r15 /* NR_exit */
3847 int #0x08
3948
4049 /*