Changeset 29a9f62 in mainline for libc/arch/mips32
- Timestamp:
- 2006-03-23T10:33:55Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77bd004
- Parents:
- 1cef26f
- Location:
- libc/arch/mips32
- Files:
-
- 4 added
- 3 edited
- 1 moved
-
Makefile.inc (modified) (1 diff)
-
include/atomic.h (moved) (moved from libc/arch/mips32/include/atomic_arch.h )
-
include/context_offset.h (added)
-
include/psthread.h (added)
-
include/thread.h (added)
-
src/entry.s (modified) (1 diff)
-
src/psthread.S (added)
-
src/thread_entry.s (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libc/arch/mips32/Makefile.inc
r1cef26f r29a9f62 32 32 TARGET = mipsel-linux-gnu 33 33 TOOLCHAIN_DIR = /usr/local/mipsel/bin 34 CFLAGS += -mno-abicalls -mips3 34 CFLAGS += -mno-abicalls -mips3 -ftls-model=global-dynamic 35 35 36 ARCH_SOURCES += arch/$(ARCH)/src/syscall.c 36 ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \ 37 arch/$(ARCH)/src/psthread.S 37 38 38 39 LFLAGS += -N -
libc/arch/mips32/src/entry.s
r1cef26f r29a9f62 37 37 # 38 38 # 39 .ent __entry 39 40 __entry: 40 41 lui $28, _gp 41 42 43 # Mips o32 may store its arguments on stack, make space, 44 # so that it could work with -O0 45 addiu $sp, -16 46 47 jal __main 48 42 49 jal main 43 nop44 50 45 51 jal __exit 46 nop47 52 48 53 .end __entry -
libc/arch/mips32/src/thread_entry.s
r1cef26f r29a9f62 38 38 # 39 39 # 40 .ent __thread_entry 40 41 __thread_entry: 41 42 lui $28, _gp … … 45 46 # 46 47 add $4, $2, 0 47 jal thread_main 48 # Mips o32 may store its arguments on stack, make space 49 addiu $sp, -16 50 51 j __thread_main 48 52 nop 49 53 50 54 # 51 55 # Not reached. 52 56 # 57 .end __thread_entry
Note:
See TracChangeset
for help on using the changeset viewer.
