Changeset a71d9af9 in mainline for libc/arch/mips32/src/entry.s
- Timestamp:
- 2006-03-24T00:51:14Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86d05fae
- Parents:
- e708063
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/arch/mips32/src/entry.s
re708063 ra71d9af9 28 28 29 29 .text 30 31 .org 032 33 30 .section .init, "ax" 34 .globl __start 31 .global __start 32 .set noreorder 33 .option pic2 35 34 36 35 ## User-space task entry point … … 39 38 .ent __start 40 39 __start: 41 lui $28, _gp 40 .frame $sp, 32, $31 41 .cpload $25 42 42 43 # Mips o32 may store its arguments on stack, make space, 43 44 # Mips o32 may store its arguments on stack, make space (16 bytes), 44 45 # so that it could work with -O0 45 addiu $sp, -16 46 # Make space additional 16 bytes for the stack frame 47 48 addiu $sp, -32 49 .cprestore 16 # Allow PIC code 46 50 47 51 jal __main 52 nop 48 53 49 54 jal main 55 nop 50 56 51 57 jal __exit 58 nop 52 59 53 60 .end __start 61 62 # Alignment of output section data to 0x4000 63 .section .data 64 .align 14
Note:
See TracChangeset
for help on using the changeset viewer.