diff -urpN pgcl-2.5.59-wk-3/include/asm-i386/shmparam.h pgcl-2.5.59-wk-4/include/asm-i386/shmparam.h --- pgcl-2.5.59-wk-3/include/asm-i386/shmparam.h 2003-01-16 18:22:00.000000000 -0800 +++ pgcl-2.5.59-wk-4/include/asm-i386/shmparam.h 2003-02-11 01:38:54.000000000 -0800 @@ -1,6 +1,6 @@ #ifndef _ASMI386_SHMPARAM_H #define _ASMI386_SHMPARAM_H -#define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ +#define SHMLBA MMUPAGE_SIZE /* attach addr a multiple of this */ #endif /* _ASMI386_SHMPARAM_H */ diff -urpN pgcl-2.5.59-wk-3/ipc/shm.c pgcl-2.5.59-wk-4/ipc/shm.c --- pgcl-2.5.59-wk-3/ipc/shm.c 2003-02-11 01:27:14.000000000 -0800 +++ pgcl-2.5.59-wk-4/ipc/shm.c 2003-02-11 01:27:51.000000000 -0800 @@ -705,7 +705,7 @@ asmlinkage long sys_shmat (int shmid, ch * space left for the stack to grow (at least 4 pages). */ if (addr < current->mm->start_stack && - addr > current->mm->start_stack - size - PAGE_SIZE * 5) + addr > current->mm->start_stack - size - MMUPAGE_SIZE * 5) goto invalid; }