Changeset c98e6ee in mainline for uspace/lib/libc/arch/mips32/src/entry.s
- Timestamp:
- 2008-07-08T16:05:45Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f93f168
- Parents:
- b7f9087
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/mips32/src/entry.s
rb7f9087 rc98e6ee 36 36 ## User-space task entry point 37 37 # 38 # $a0 ($4) contains the PCB pointer 38 39 # 39 40 .ent __entry … … 41 42 .frame $sp, 32, $31 42 43 .cpload $25 43 44 44 45 45 # Mips o32 may store its arguments on stack, make space (16 bytes), 46 46 # so that it could work with -O0 … … 49 49 addiu $sp, -32 50 50 .cprestore 16 # Allow PIC code 51 51 52 # Pass pcb_ptr to __main() as the first argument. pcb_ptr is already 53 # in $a0. As the first argument is passed in $a0, no operation 54 # is needed. 55 52 56 jal __main 53 nop54 55 jal main56 57 nop 57 58
Note:
See TracChangeset
for help on using the changeset viewer.