p_top must be set in process.c as well for bank16k
authorBrett Gordon <beretta42@gmail.com>
Mon, 22 Jun 2015 13:41:04 +0000 (09:41 -0400)
committerAlan Cox <alan@linux.intel.com>
Tue, 23 Jun 2015 21:28:42 +0000 (22:28 +0100)
commit3f73d93b8b6d8270c7e4e227ffccf6648cf971c8
tree299df72344d971ebc3ee819de2e7872e4c1e7f7b
parent2400e94d8a9eb281d6442933c64b7de8a56eeac8
p_top must be set in process.c as well for bank16k

I'm not exactly sure, but I think I found a bug in the bank16k
implementation.  When ptab_alloc() calls pagemap_alloc(), p_top is not
set yet.  pagemap_alloc, then proceeds to assign only one bank to the
new processes.  Assuming normal copy forking, should p_top be set to
the parent's p_top *before* calling pagemap_alloc() ?

This fix seems to make my coco3 UDATA mods start working
Kernel/process.c