Exemplo n.º 1
0
vm_offset_t
watch_phys_get(int *bm)
{
	u_long pa;
	u_long lsucr;
	
	if (!watch_phys_active())
		return (0);

	pa = ldxa(AA_DMMU_PWPR, ASI_DMMU);
	lsucr = ldxa(0, ASI_LSU_CTL_REG);
	*bm = (lsucr & LSU_PM_MASK) >> LSU_PM_SHIFT;
	
	return ((vm_offset_t)pa);
}
Exemplo n.º 2
0
void
db_md_list_watchpoints(void)
{
	vm_offset_t wp;
	int bm;

	db_printf("Physical address watchpoint:\n");
	if (watch_phys_active()) {
		wp = watch_phys_get(&bm);
		db_watch_print(wp, bm);
	} else
		db_printf("\tnot active.\n");
	db_printf("Virtual address watchpoint:\n");
	if (watch_virt_active()) {
		wp = watch_virt_get(&bm);
		db_watch_print(wp, bm);
	} else
		db_printf("\tnot active.\n");
}
Exemplo n.º 3
0
void
db_md_list_watchpoints(void)
{
	vm_offset_t va;
	vm_paddr_t pa;
	int bm;

	db_printf("Physical address watchpoint:\n");
	if (watch_phys_active()) {
		pa = watch_phys_get(&bm);
		db_watch_print(pa, bm);
	} else
		db_printf("\tnot active.\n");
	db_printf("Virtual address watchpoint:\n");
	if (watch_virt_active()) {
		va = watch_virt_get(&bm);
		db_watch_print(va, bm);
	} else
		db_printf("\tnot active.\n");
}