PERFORCE change 104870 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Wed Aug 23 22:08:05 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104870
Change 104870 by gonzo at gonzo_hideout on 2006/08/23 22:07:30
o replace amd64 bits with MIPS stubs.
Affected files ...
.. //depot/projects/mips2/src/lib/libpthread/arch/mips/mips/context.S#2 edit
Differences ...
==== //depot/projects/mips2/src/lib/libpthread/arch/mips/mips/context.S#2 (text+ko) ====
@@ -38,17 +38,9 @@
.weak _C_LABEL(_thr_setcontext)
.set _C_LABEL(_thr_setcontext), _C_LABEL(__thr_setcontext)
-ENTRY(__thr_setcontext)
+LEAF(__thr_setcontext)
/* Check for NULL pointer. */
- cmp r0, #0
- moveq r0, #-1
- moveq pc, lr
- cmp r2, #0
- strne r1, [r2]
- ldr r1, [r0, #(16 * 4)] /* CPSR */
- msr cpsr, r1
- ldmia r0, {r0-r15}
- mov pc, lr
+ j ra
/* XXX: FP bits ? */
/*
@@ -60,20 +52,6 @@
.weak _C_LABEL(_thr_getcontext)
.set _C_LABEL(_thr_getcontext), _C_LABEL(__thr_getcontext)
-ENTRY(__thr_getcontext)
+LEAF(__thr_getcontext)
/* Check for NULL pointer. */
- cmp r0, #0
- moveq r0, #-1
- moveq pc, lr
- stmia r0, {r1-r14}
- mov r1, #1
- str r1, [r0] /* Return 1 from setcontext */
- str lr, [r0, #(15 * 4)] /* PC */
- mrs r1, cpsr
- str r1, [r0, #(16 * 4)] /* CPSR */
- mov r0, #0 /* Return 0. */
- mov pc, lr
-
-ENTRY(_arm_enter_uts)
- add sp, r2, r3 /* Stack addr + size. */
- mov pc, r1
+ j ra
More information about the p4-projects
mailing list