From 0af3c15ba37d4d5f679902c3a77923fef1322e6d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 11 Aug 1997 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1997-08-11 --- ip/devip.c | 4 ++-- pc/memory.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ip/devip.c b/ip/devip.c index 2605ade1efc970117fe30056759ff674ad8323ac..f32d4fc60cd389e0df4b663640bcc098a4eb9cd3 100644 --- a/ip/devip.c +++ b/ip/devip.c @@ -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++){ diff --git a/pc/memory.c b/pc/memory.c index 2fd62e9711c2006ca864635ed12b49539a9f1aad..ebcd7f9780f3c8d0f2d8ecf19a6bc7c74cf24d22 100644 --- a/pc/memory.c +++ b/pc/memory.c @@ -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;