The address used by mips1_FlushICache() is a virtual address, not a physical
address. This caused DDB to hang the machine hard when trying to set a breakpoint.
This commit is contained in:
parent
a6467ae1e4
commit
c390c7a5e1
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: db_interface.c,v 1.2 1997/07/07 04:55:27 jonathan Exp $ */
|
/* $NetBSD: db_interface.c,v 1.3 1997/11/11 16:50:57 mhitch Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mach Operating System
|
* Mach Operating System
|
||||||
|
@ -89,7 +89,7 @@ kdbpoke(vm_offset_t addr, int newval)
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
#ifdef MIPS1
|
#ifdef MIPS1
|
||||||
mips1_FlushICache(MIPS_KSEG0_TO_PHYS(addr), sizeof(int));
|
mips1_FlushICache((vm_offset_t) addr, sizeof(int));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue