~kris/9p

9hist

0af3c15ba37d4d5f679902c3a77923fef1322e6d — David du Colombier 29 years ago 119677d
Plan 9 from Bell Labs 1997-08-11
2 files changed, 4 insertions(+), 4 deletions(-)

M ip/devip.c
M pc/memory.c
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;