[3087] in Athena Bugs
Kernel: sys/vm_pt.c
daemon@ATHENA.MIT.EDU (John Carr)
Mon Sep 4 19:27:45 1989
To: bugs@ATHENA.MIT.EDU
Date: Mon, 04 Sep 89 19:27:30 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>
The following patch to vm_pt.c is needed for it to compile using
a preprocessor other than /lib/cpp. gcc-cpp, for example, does
not allow #ifdef's to be within macros.
*** /minos/sys/sys/vm_pt.c Mon May 2 15:06:25 1988
--- vm_pt.c Fri Aug 25 17:08:00 1989
***************
*** 359,368 ****
* table pages wholly containing text. This is well
* understood in the code in vmswap.c.
*/
- return (clrnd(UPAGES +
#ifdef ibm032
clrnd(ctopt(p->p_tsize+p->p_dsize+p->p_ssize+HIGHPAGES)) - tsz));
#else ibm032
clrnd(ctopt(p->p_tsize+p->p_dsize+p->p_ssize+UPAGES)) - tsz));
#endif ibm032
}
--- 359,369 ----
* table pages wholly containing text. This is well
* understood in the code in vmswap.c.
*/
#ifdef ibm032
+ return (clrnd(UPAGES +
clrnd(ctopt(p->p_tsize+p->p_dsize+p->p_ssize+HIGHPAGES)) - tsz));
#else ibm032
+ return (clrnd(UPAGES +
clrnd(ctopt(p->p_tsize+p->p_dsize+p->p_ssize+UPAGES)) - tsz));
#endif ibm032
}