1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Fix compilation when DDB disabled. Adds 'ifdef DDB' around

DB_SHOW_COMMAND definitions.
This commit is contained in:
Jayachandran C. 2010-08-11 06:43:14 +00:00
parent 247d222548
commit 643e9900ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211167

View File

@ -3052,6 +3052,7 @@ pmap_align_tlb(vm_offset_t *addr)
return;
}
#ifdef DDB
DB_SHOW_COMMAND(ptable, ddb_pid_dump)
{
pmap_t pmap;
@ -3077,9 +3078,8 @@ DB_SHOW_COMMAND(ptable, ddb_pid_dump)
pmap = kernel_pmap;
db_printf("pmap:%p segtab:%p asid:%x generation:%x\n",
pmap, pmap->pm_segtab,
pmap->pm_asid[0].asid,
pmap->pm_asid[0].gen);
pmap, pmap->pm_segtab, pmap->pm_asid[0].asid,
pmap->pm_asid[0].gen);
for (i = 0; i < NPDEPG; i++) {
pd_entry_t *pdpe;
pt_entry_t *pde;
@ -3112,7 +3112,7 @@ DB_SHOW_COMMAND(ptable, ddb_pid_dump)
}
}
}
#endif
#if defined(DEBUG)