Page MenuHomeFreeBSD

D9645.diff
No OneTemporary

D9645.diff

Index: head/sys/amd64/amd64/pmap.c
===================================================================
--- head/sys/amd64/amd64/pmap.c
+++ head/sys/amd64/amd64/pmap.c
@@ -7239,6 +7239,7 @@
#include "opt_ddb.h"
#ifdef DDB
+#include <sys/kdb.h>
#include <ddb/ddb.h>
DB_SHOW_COMMAND(pte, pmap_print_pte)
@@ -7250,13 +7251,17 @@
pt_entry_t *pte, PG_V;
vm_offset_t va;
- if (have_addr) {
- va = (vm_offset_t)addr;
- pmap = PCPU_GET(curpmap); /* XXX */
- } else {
+ if (!have_addr) {
db_printf("show pte addr\n");
return;
}
+ va = (vm_offset_t)addr;
+
+ if (kdb_thread != NULL)
+ pmap = vmspace_pmap(kdb_thread->td_proc->p_vmspace);
+ else
+ pmap = PCPU_GET(curpmap);
+
PG_V = pmap_valid_bit(pmap);
pml4 = pmap_pml4e(pmap, va);
db_printf("VA %#016lx pml4e %#016lx", va, *pml4);

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 11:02 AM (18 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15540645
Default Alt Text
D9645.diff (804 B)

Event Timeline