Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144519349
D21643.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21643.diff
View Options
Index: head/sys/powerpc/aim/moea64_native.c
===================================================================
--- head/sys/powerpc/aim/moea64_native.c
+++ head/sys/powerpc/aim/moea64_native.c
@@ -213,6 +213,12 @@
static volatile struct pate *moea64_part_table;
/*
+ * Dump function.
+ */
+static void *moea64_dump_pmap_native(mmu_t mmu, void *ctx, void *buf,
+ u_long *nbytes);
+
+/*
* PTE calls.
*/
static int moea64_pte_insert_native(mmu_t, struct pvo_entry *);
@@ -233,6 +239,7 @@
/* Internal interfaces */
MMUMETHOD(mmu_bootstrap, moea64_bootstrap_native),
MMUMETHOD(mmu_cpu_bootstrap, moea64_cpu_bootstrap_native),
+ MMUMETHOD(mmu_dump_pmap, moea64_dump_pmap_native),
MMUMETHOD(moea64_pte_synch, moea64_pte_synch_native),
MMUMETHOD(moea64_pte_clear, moea64_pte_clear_native),
@@ -787,3 +794,21 @@
return (-1);
}
+static void *
+moea64_dump_pmap_native(mmu_t mmu, void *ctx, void *buf, u_long *nbytes)
+{
+ struct dump_context *dctx;
+ u_long ptex, ptex_end;
+
+ dctx = (struct dump_context *)ctx;
+ ptex = dctx->ptex;
+ ptex_end = ptex + dctx->blksz / sizeof(struct lpte);
+ ptex_end = MIN(ptex_end, dctx->ptex_end);
+ *nbytes = (ptex_end - ptex) * sizeof(struct lpte);
+
+ if (*nbytes == 0)
+ return (NULL);
+
+ dctx->ptex = ptex_end;
+ return (__DEVOLATILE(struct lpte *, moea64_pteg_table) + ptex);
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 10, 3:06 AM (7 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28606344
Default Alt Text
D21643.diff (1 KB)
Attached To
Mode
D21643: [PPC64] Add minidump support to PowerNV
Attached
Detach File
Event Timeline
Log In to Comment