Re: [Badmem-users] 2.6.8.1 progress
Status: Beta
Brought to you by:
eagle2
From: Carl K. <ca...@pe...> - 2004-09-14 04:50:08
|
> Here is what I have so far, can someone review? added another tweek. This will build clean as long as you don't enalbe it in .configure - see next post for that problem. --- badmem-5.0ns-kernel-2.6.4.diff.org 2004-09-13 21:30:48.772263416 -0500 +++ badmem-5.0ns-kernel-2.6.8.1.diff 2004-09-13 22:25:43.686360336 -0500 @@ -723,9 +723,9 @@ +#endif // CONFIG_BADMEM (unsigned long) nr_free_pages() << (PAGE_SHIFT-10), +#ifdef CONFIG_BADMEM - num_physpages << (PAGE_SHIFT-10), -+#else + num_physpages << (PAGE_SHIFT-10) - (badpages << (PAGE_SHIFT-10)), ++#else + num_physpages << (PAGE_SHIFT-10), +#endif // CONFIG_BADMEM codesize >> 10, reservedpages << (PAGE_SHIFT-10), @@ -934,10 +934,11 @@ diff -uNr -d a/mm/Makefile b/mm/Makefile --- a/mm/Makefile Thu Dec 18 03:59:05 2003 +++ b/mm/Makefile Tue Mar 16 22:51:14 2004 -@@ -12,3 +12,71 @@ - slab.o swap.o truncate.o vmscan.o $(mmu-y) - - obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o +@@ -11,4 +11,72 @@ +obj-y := bootmem.o filemap.o mempool.o oom_kill.o fadvise.o \ + page_alloc.o page-writeback.o pdflush.o prio_tree.o \ + readahead.o slab.o swap.o truncate.o vmscan.o \ + $(mmu-y) + +clean-files := modparse badmem_modules.c kernel_badmemlib.o \ + badmemlib_version badmemkernellib_version @@ -1058,7 +1059,7 @@ + PageLocked(p) ? "locked " : "", + PageSlab(p) ? "slab" : ""); + -+ thislen = sprintf (b, "page #%i, mem 0x%08x-0x%08x, counter %u, %s\n", i, i << PAGE_SHIFT, ((i+1) << PAGE_SHIFT) - 1, p->count, n); ++ thislen = sprintf (b, "page #%i, mem 0x%08x-0x%08x, counter %u, %s\n", i, i << PAGE_SHIFT, ((i+1) << PAGE_SHIFT) - 1, p->_count, n); + totallen += thislen; + b += thislen; + ck |