svn commit: r210698 - head/sys/mips/mips

Jayachandran C. jchandra at FreeBSD.org
Sat Jul 31 19:11:39 UTC 2010


Author: jchandra
Date: Sat Jul 31 19:11:38 2010
New Revision: 210698
URL: http://svn.freebsd.org/changeset/base/210698

Log:
  Use fuword32() to fetch instructions, this will work on both 32 and 64 bit
  compilation.

Modified:
  head/sys/mips/mips/trap.c

Modified: head/sys/mips/mips/trap.c
==============================================================================
--- head/sys/mips/mips/trap.c	Sat Jul 31 17:58:44 2010	(r210697)
+++ head/sys/mips/mips/trap.c	Sat Jul 31 19:11:38 2010	(r210698)
@@ -820,7 +820,7 @@ dofault:
 				va += sizeof(int);
 
 			/* read break instruction */
-			instr = fuword((caddr_t)va);
+			instr = fuword32((caddr_t)va);
 #if 0
 			printf("trap: %s (%d) breakpoint %x at %x: (adr %x ins %x)\n",
 			    p->p_comm, p->p_pid, instr, trapframe->pc,
@@ -869,7 +869,7 @@ dofault:
 			if (DELAYBRANCH(trapframe->cause))
 				va += sizeof(int);
 			/* read break instruction */
-			instr = fuword((caddr_t)va);
+			instr = fuword32((caddr_t)va);
 
 			if (DELAYBRANCH(trapframe->cause)) {	/* Check BD bit */
 				locr0->pc = MipsEmulateBranch(locr0, trapframe->pc, 0,


More information about the svn-src-head mailing list