PROGBASE is where the code starts
MAPBASE is where the memory mapping begins
This is needed for systems with a low mapped common
#define PTABSIZE 15 /* Process table size. */
#endif
+#ifndef MAPBASE /* Usually the start of program and map match */
+#define MAPBASE PROGBASE
+#endif
+
#define MAXTICKS 10 /* Max ticks before switching out (time slice)
default process time slice */
// #define MAXBACK 3 /* Process time slice for tasks not connected
goto nogood3; /* SN */
/* This must be the last test as it makes changes if it works */
- if (pagemap_realloc(top - PROGBASE))
+ if (pagemap_realloc(top - MAPBASE))
goto nogood3;
/* From this point on we are commmited to the exec() completing */