teg2, xen: remove unused bootdisk[] and fix conf.nswppo factor in kernel memory size calculation

This commit is contained in:
cinap_lenrek 2014-12-17 10:03:45 +01:00
parent 0e2ff6fb1f
commit 13c4b57c0c
2 changed files with 2 additions and 3 deletions

View file

@ -909,7 +909,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)
/*

View file

@ -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){
/*