Subject: unused macros removed from machparam.h (#63) Index: sys/pdp/machparam.h 2.11BSD Description: The macro DELAY has been retired in favor of the delay() routine in mch_xxx.s. The last kernel/networking module (dhv.c) which used DELAY has been updated. The space savings from calling a routine rather than inlining the delay were quite noticeable. The macro SPLX is a leftover from the 2.9/2.10BSD days (i believe) and has not been used in a _long_ time. Repeat-By: Examine the sources. Fix: Apply the patch below. *** /sys/pdp/machparam.h.old Sun May 27 20:28:40 1990 --- /sys/pdp/machparam.h Wed Jan 8 22:48:06 1992 *************** *** 125,139 **** #define USERMODE(ps) (((ps) & PSL_USERSET) == PSL_USERSET) #define BASEPRI(ps) (((ps) & PSL_IPL) == 0) - /* - * Very crude attempt to define the relative DELAY loop speeds of various - * processors. - */ - #ifdef PDP==44 || PDP==53 || PDP==70 || PDP==73 || PDP==83 || PDP==84 #define DELAY(n) { long N = ((long)(n))<<1; while (--N > 0); } - #else - #define DELAY(n) { long N = (n); while (--N > 0); } - #endif /* * Treat ps as byte, to allow restoring value from mfps/movb --- 125,131 ---- *************** *** 141,151 **** */ #define PS_LOBYTE ((char *)0177776) #define splx(ops) (*PS_LOBYTE = ((char)(ops))) - #define SPLX(ops) { \ - if (BASEPRI(ops) && netisr) \ - netintr(); \ - splx(ops); \ - } /* * high int of a long --- 133,138 ----