summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-09-07 10:59:05 +0000
committerdfr <dfr@FreeBSD.org>2001-09-07 10:59:05 +0000
commitdb9d3370ef853f72e6b933b264df7965d27c0a78 (patch)
tree8e3af104aa7f79c2f990312d62d0d1b76b19987b
parentaa037ff4c0810c1e39e19d6f2b0e5fc3d773a63b (diff)
downloadFreeBSD-src-db9d3370ef853f72e6b933b264df7965d27c0a78.zip
FreeBSD-src-db9d3370ef853f72e6b933b264df7965d27c0a78.tar.gz
Remove old setjmp/longjmp stubs.
-rw-r--r--sys/ia64/ia64/support.S69
-rw-r--r--sys/ia64/ia64/support.s69
2 files changed, 0 insertions, 138 deletions
diff --git a/sys/ia64/ia64/support.S b/sys/ia64/ia64/support.S
index 4ddd5e0..2e18b9c 100644
--- a/sys/ia64/ia64/support.S
+++ b/sys/ia64/ia64/support.S
@@ -464,72 +464,3 @@ ENTRY(copyerr, 0)
br.ret.sptk.few rp
END(copyerr)
-
-/**************************************************************************/
-
-/*
- * Kernel setjmp and longjmp. Rather minimalist.
- *
- * longjmp(label_t *a)
- * will generate a "return (1)" from the last call to
- * setjmp(label_t *a)
- * by restoring registers from the stack,
- */
-
-
-ENTRY(setjmp, 1)
-#if 0
- LDGP(pv)
-
- stq ra, (0 * 8)(a0) /* return address */
- stq s0, (1 * 8)(a0) /* callee-saved registers */
- stq s1, (2 * 8)(a0)
- stq s2, (3 * 8)(a0)
- stq s3, (4 * 8)(a0)
- stq s4, (5 * 8)(a0)
- stq s5, (6 * 8)(a0)
- stq s6, (7 * 8)(a0)
- stq sp, (8 * 8)(a0)
-
- ldiq t0, 0xbeeffedadeadbabe /* set magic number */
- stq t0, (9 * 8)(a0)
-
- mov zero, v0 /* return zero */
- RET
-#endif
-END(setjmp)
-
-ENTRY(longjmp, 1)
-#if 0
- LDGP(pv)
-
- ldiq t0, 0xbeeffedadeadbabe /* check magic number */
- ldq t1, (9 * 8)(a0)
- cmpeq t0, t1, t0
- beq t0, longjmp_botch /* if bad, punt */
-
- ldq ra, (0 * 8)(a0) /* return address */
- ldq s0, (1 * 8)(a0) /* callee-saved registers */
- ldq s1, (2 * 8)(a0)
- ldq s2, (3 * 8)(a0)
- ldq s3, (4 * 8)(a0)
- ldq s4, (5 * 8)(a0)
- ldq s5, (6 * 8)(a0)
- ldq s6, (7 * 8)(a0)
- ldq sp, (8 * 8)(a0)
-
- ldiq v0, 1
- RET
-
-longjmp_botch:
- lda a0, longjmp_botchmsg
- mov ra, a1
- CALL(panic)
- call_pal PAL_bugchk
-
- .data
-longjmp_botchmsg:
- .asciz "longjmp botch from %p"
- .text
-#endif
-END(longjmp)
diff --git a/sys/ia64/ia64/support.s b/sys/ia64/ia64/support.s
index 4ddd5e0..2e18b9c 100644
--- a/sys/ia64/ia64/support.s
+++ b/sys/ia64/ia64/support.s
@@ -464,72 +464,3 @@ ENTRY(copyerr, 0)
br.ret.sptk.few rp
END(copyerr)
-
-/**************************************************************************/
-
-/*
- * Kernel setjmp and longjmp. Rather minimalist.
- *
- * longjmp(label_t *a)
- * will generate a "return (1)" from the last call to
- * setjmp(label_t *a)
- * by restoring registers from the stack,
- */
-
-
-ENTRY(setjmp, 1)
-#if 0
- LDGP(pv)
-
- stq ra, (0 * 8)(a0) /* return address */
- stq s0, (1 * 8)(a0) /* callee-saved registers */
- stq s1, (2 * 8)(a0)
- stq s2, (3 * 8)(a0)
- stq s3, (4 * 8)(a0)
- stq s4, (5 * 8)(a0)
- stq s5, (6 * 8)(a0)
- stq s6, (7 * 8)(a0)
- stq sp, (8 * 8)(a0)
-
- ldiq t0, 0xbeeffedadeadbabe /* set magic number */
- stq t0, (9 * 8)(a0)
-
- mov zero, v0 /* return zero */
- RET
-#endif
-END(setjmp)
-
-ENTRY(longjmp, 1)
-#if 0
- LDGP(pv)
-
- ldiq t0, 0xbeeffedadeadbabe /* check magic number */
- ldq t1, (9 * 8)(a0)
- cmpeq t0, t1, t0
- beq t0, longjmp_botch /* if bad, punt */
-
- ldq ra, (0 * 8)(a0) /* return address */
- ldq s0, (1 * 8)(a0) /* callee-saved registers */
- ldq s1, (2 * 8)(a0)
- ldq s2, (3 * 8)(a0)
- ldq s3, (4 * 8)(a0)
- ldq s4, (5 * 8)(a0)
- ldq s5, (6 * 8)(a0)
- ldq s6, (7 * 8)(a0)
- ldq sp, (8 * 8)(a0)
-
- ldiq v0, 1
- RET
-
-longjmp_botch:
- lda a0, longjmp_botchmsg
- mov ra, a1
- CALL(panic)
- call_pal PAL_bugchk
-
- .data
-longjmp_botchmsg:
- .asciz "longjmp botch from %p"
- .text
-#endif
-END(longjmp)
OpenPOWER on IntegriCloud