M ip/devip.c => ip/devip.c +2 -2
@@ 512,7 512,7 @@ setlport(Conv* c)
* ports (p->nextrport) to 600.
* Restricted ports must lie between 600 and 1024.
* For the initial condition or if the unrestricted port number
- * has wrapped round, select a random port between 5000 and 1<<16
+ * has wrapped round, select a random port between 5000 and 1<<15
* to start at.
*/
if(c->restricted){
@@ 520,7 520,7 @@ setlport(Conv* c)
*pp = 600;
}
else while(*pp < 5000)
- *pp = nrand(1<<16);
+ *pp = nrand(1<<15);
found = 0;
for(x = 0; x < p->nc; x++){
M pc/memory.c => pc/memory.c +2 -2
@@ 392,10 392,10 @@ upainit(void)
ulong addr, pa, pae, *table, *va, x;
/*
- * Allocate an 64MB chunk aligned to 64MB. Later can
+ * Allocate an 8MB chunk aligned to 16MB. Later can
* make the region selectable via conf if necessary.
*/
- if((addr = mapalloc(&rmapupa, 0, 64*MB, 64*MB)) == 0)
+ if((addr = mapalloc(&rmapupa, 0, 8*MB, 16*MB)) == 0)
return;
pa = addr;