From 13c4b57c0cf7be531692ff5a170dbfffa9984072 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 17 Dec 2014 10:03:45 +0100 Subject: teg2, xen: remove unused bootdisk[] and fix conf.nswppo factor in kernel memory size calculation --- sys/src/9/xen/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/src/9/xen/main.c') diff --git a/sys/src/9/xen/main.c b/sys/src/9/xen/main.c index 54ce7d765..cc06a4306 100644 --- a/sys/src/9/xen/main.c +++ b/sys/src/9/xen/main.c @@ -21,7 +21,6 @@ enum { Ustkheadroom = sizeof(Sargs) + sizeof(uintptr) + sizeof(Tos), }; -char bootdisk[KNAMELEN]; Conf conf; char *confname[MAXCONF]; char *confval[MAXCONF]; @@ -431,7 +430,7 @@ confinit(void) + conf.nproc*sizeof(Proc) + conf.nimage*sizeof(Image) + conf.nswap - + conf.nswppo*sizeof(Page); + + conf.nswppo*sizeof(Page*); mainmem->maxsize = kpages; if(!cpuserver){ /* -- cgit v1.2.3