FreeBSD Bugzilla – Attachment 11700 Details for
Bug 22944
[vm] [patch] isa_dmainit fails on machines with 512MB memory or more
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.03 KB, created by
tegge
on 2000-11-18 18:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tegge
Created:
2000-11-18 18:20:01 UTC
Size:
2.03 KB
patch
obsolete
>Index: sys/i386/i386/machdep.c >=================================================================== >RCS file: /home/ncvs/src/sys/i386/i386/machdep.c,v >retrieving revision 1.420 >diff -u -r1.420 machdep.c >--- sys/i386/i386/machdep.c 2000/10/27 11:45:23 1.420 >+++ sys/i386/i386/machdep.c 2000/11/18 18:09:15 >@@ -120,6 +120,8 @@ > #include <sys/ptrace.h> > #include <machine/sigframe.h> > >+#include "isa.h" >+ > extern void init386 __P((int first)); > extern void dblfault_handler __P((void)); > >@@ -1807,6 +1811,31 @@ > phys_avail[pa_indx] -= round_page(MSGBUF_SIZE); > > avail_end = phys_avail[pa_indx]; >+ >+#if NISA > 0 >+#define ISA_MEM_END (16 * 1024 * 1024) >+#define ISA_MEM_CONSERVELIM (128 * 1024 * 1024) >+ if (pa_indx + 2 < PHYS_AVAIL_ARRAY_END) { >+ for (i = pa_indx; i >= 1; i -= 2) >+ if (phys_avail[i - 1] < ISA_MEM_END && >+ phys_avail[i] > ISA_MEM_CONSERVELIM) >+ break; >+ if (i >= 1) { >+ phys_avail[pa_indx + 4] = 0; >+ phys_avail[pa_indx + 3] = 0; >+ for (i = pa_indx; i >= 1; i-= 2) { >+ phys_avail[i + 2] = phys_avail[i]; >+ phys_avail[i + 1] = phys_avail[i -1]; >+ if (phys_avail[i - 1] < ISA_MEM_END && >+ phys_avail[i] > ISA_MEM_CONSERVELIM) { >+ phys_avail[i + 1] = ISA_MEM_END; >+ phys_avail[i] = ISA_MEM_END; >+ break; >+ } >+ } >+ } >+ } >+#endif > } > > void >@@ -1943,7 +1972,6 @@ > */ > cninit(); > >-#include "isa.h" > #if NISA >0 > isa_defaultirq(); > #endif >Index: sys/vm/vm_page.c >=================================================================== >RCS file: /home/ncvs/src/sys/vm/vm_page.c,v >retrieving revision 1.153 >diff -u -r1.153 vm_page.c >--- sys/vm/vm_page.c 2000/07/04 04:32:40 1.153 >+++ sys/vm/vm_page.c 2000/11/18 17:29:30 >@@ -161,7 +163,10 @@ > m->flags = 0; > m->pc = (pa >> PAGE_SHIFT) & PQ_L2_MASK; > m->queue = m->pc + PQ_FREE; >- TAILQ_INSERT_HEAD(&vm_page_queues[m->queue].pl, m, pageq); >+ if (((pa >> PAGE_SHIFT) & 1) == 0) >+ TAILQ_INSERT_HEAD(&vm_page_queues[m->queue].pl, m, pageq); >+ else >+ TAILQ_INSERT_TAIL(&vm_page_queues[m->queue].pl, m, pageq); > vm_page_queues[m->queue].lcnt++; > return (m); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22944
: 11700