patch-2.3.48 linux/arch/mips/lib/watch.S
Next file: linux/arch/mips/mm/Makefile
Previous file: linux/arch/mips/lib/strnlen_user.S
Back to the patch index
Back to the overall index
- Lines: 94
- Date:
Thu Feb 24 22:52:30 2000
- Orig file:
v2.3.47/linux/arch/mips/lib/watch.S
- Orig date:
Fri Jun 25 17:40:13 1999
diff -u --recursive --new-file v2.3.47/linux/arch/mips/lib/watch.S linux/arch/mips/lib/watch.S
@@ -1,12 +1,13 @@
-/*
- * Kernel debug stuff to use the Watch registers.
- * Useful to find stack overflows, dangling pointers etc.
+/* $Id: watch.S,v 1.3 1999/08/21 22:19:11 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 1995, 1996 by Ralf Baechle
+ * Kernel debug stuff to use the Watch registers.
+ * Useful to find stack overflows, dangling pointers etc.
+ *
+ * Copyright (C) 1995, 1996, 1999 by Ralf Baechle
*/
#include <asm/asm.h>
#include <asm/mipsregs.h>
@@ -48,7 +49,6 @@
*/
LEAF(__watch_reenable)
lw t0,watch_savelo
-
jr ra
mtc0 t0,CP0_WATCHLO
END(__watch_reenable)
@@ -59,67 +59,3 @@
.data
watch_savelo: .word 0
.text
-
-/*
- * The stuff below are just some kernel debugging gadgets. It is only here
- * because it had to be somewhere and will go away.
- */
-
-/*
- * Parameter: none
- * Results : none
- */
- LEAF(get_sp)
- jr ra
- move v0,sp
- END(get_sp)
-
-/*
- * Parameter: none
- * Results : none
- */
- LEAF(get_ra)
- jr ra
- move v0,ra
- END(get_ra)
-
-/*
- * Parameter: none
- * Results : none
- */
- LEAF(get_status)
- jr ra
- mfc0 v0,CP0_STATUS
- END(get_status)
-
-/*
- * Parameter: none
- * Results : none
- */
- NESTED(print_sp, ((5*SZREG)+ALSZ)&ALMASK, sp)
- .mask 0x80000000,4*SZREG
- PTR_SUBU sp,((5*SZREG)+ALSZ)&ALMASK
- REG_S ra,4*SZREG(sp)
- move a1,sp
- PRINT("$sp == %08lx\n")
- REG_L ra,4*SZREG(sp)
-
- jr ra
- PTR_ADDU sp,((5*SZREG)+ALSZ)&ALMASK
- END(print_sp)
-
-/*
- * Parameter: none
- * Results : none
- */
- NESTED(print_st, ((5*SZREG)+ALSZ)&ALMASK, sp)
- .mask 0x80000000,4*SZREG
- PTR_SUBU sp,((5*SZREG)+ALSZ)&ALMASK
- REG_S ra,4*SZREG(sp)
- mfc0 a1,CP0_STATUS
- PRINT("cp0_status == %08lx\n")
- REG_L ra,4*SZREG(sp)
-
- jr ra
- PTR_ADDU sp,((5*SZREG)+ALSZ)&ALMASK
- END(print_st)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)