kernel: allow for cases with only a small window in the base page
authorAlan Cox <alan@linux.intel.com>
Sat, 6 Oct 2018 21:01:49 +0000 (22:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 6 Oct 2018 21:01:49 +0000 (22:01 +0100)
commitde4847156b6eb9c27b436bbc00cbd5fcfbe217af
tree82c209b56cb1357ca5169e1add2c3b703ebc7315
parent80cf85722fc15b585f3a4d6d960fc81db8081573
kernel: allow for cases with only a small window in the base page

If you have a 4x16K or similar mapping model and most of the upper page
is taken up by discard and common then there may not be 4K to randomly play with.

In that case firstly we overflow and miscalculate the pages, secondly we then
scribble on stuff we shouldn't.

Instead tighten it up so there needs to be only 512 bytes (plus vectors etc
- 256 bytes on Z80) of space.
Kernel/start.c