https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193465

--- Comment #3 from Sean Bruno <sbr...@freebsd.org> ---
(In reply to Sean Bruno from comment #2)
> Specifically, this is what I am doing to work around this issue:
> 
> Index: sys/kern/kern_malloc.c
> ===================================================================
> --- sys/kern/kern_malloc.c    (revision 271278)
> +++ sys/kern/kern_malloc.c    (working copy)
> @@ -151,10 +151,21 @@
>       {1024, "1024", },
>       {2048, "2048", },
>       {4096, "4096", },
> +#if PAGE_SIZE > 4096
>       {8192, "8192", },
> +#if PAGE_SIZE > 8192
>       {16384, "16384", },
> +#if PAGE_SIZE > 16384
>       {32768, "32768", },
> +#if PAGE_SIZE > 32768
>       {65536, "65536", },
> +#if PAGE_SIZE > 65536
> +#error "Unsupported PAGE_SIZE"
> +#endif
> +#endif
> +#endif
> +#endif
> +#endif
>       {0, NULL},
>  };

This is incorrect.  I had to revert r266964 and r266963 in order to get the
system to work again.

Just using this change results in a panic:
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-CURRENT #0 r271278M: Mon Sep  8 11:36:16 PDT 2014
   
sbruno@alice:/home/sbruno/bsd/obj/mips/mips.mips/home/sbruno/bsd/fbsd_head/sys/WZR-300HP
mips
gcc version 4.2.1 20070831 patched [FreeBSD]
WARNING: WITNESS option enabled, expect reduced performance.
MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:
    MEMGUARD map base: 0xc0800000
    MEMGUARD map size: 104860 KBytes
Preloaded elf kernel "kernel" at 0x80646970.
real memory  = 67108864 (65536K bytes)
Physical memory chunk(s):
0x006e1000 - 0x03ebcfff, 58572800 bytes (14300 pages)
avail memory = 57790464 (55MB)
Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
[ thread pid 0 tid 0 ]
Stopped at      strncmp+0x8:    lb      v1,0(a0)
db> reset

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to