--- Net2/arch/i386/include/param.h 2018/04/24 18:04:01 1.1 +++ Net2/arch/i386/include/param.h 2018/04/24 18:12:32 1.1.1.2 @@ -98,7 +98,7 @@ * Size of kernel malloc arena in CLBYTES-sized logical pages */ #ifndef NKMEMCLUSTERS -#define NKMEMCLUSTERS (2048*1024/CLBYTES) +#define NKMEMCLUSTERS (3072*1024/CLBYTES) #endif /* * Some macros for units conversion @@ -143,12 +143,6 @@ #define i386_btop(x) ((unsigned)(x) >> PGSHIFT) #define i386_ptob(x) ((unsigned)(x) << PGSHIFT) -#ifdef KERNEL -#ifndef LOCORE -int cpuspeed; -#endif -#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); } - -#else -#define DELAY(n) { register int N = (n); while (--N > 0); } +#ifndef KERNEL +#define DELAY(n) { volatile int N = (n); while (--N > 0); } #endif