Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105769916
D9645.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
804 B
Referenced Files
None
Subscribers
None
D9645.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9645: db show pte: use pmap of kdb_thread
Attached
Detach File
Event Timeline
Log In to Comment