bank32: make passive provision for awkward boxes with low 32K switching
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 18 Nov 2014 20:37:10 +0000 (20:37 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 18 Nov 2014 20:37:10 +0000 (20:37 +0000)
commit5e0d6cfa145382c00342f945cf95f389164abf4b
treebd32ec086c639ea9239f37dfa77ec3b3edab0f31
parentd996fdbca20badb6a1e246ff929cc47ed84c2130
bank32: make passive provision for awkward boxes with low 32K switching

This allows you to define them as a 32K paged system and use the provided
swap and page hooks, plus your switch functions to copy blocks between the
spare parts of the high 32K and the pages they are stashed in.

This means that with a typical usage model of a single large app performance
will basically be as good as a sensible layout, and only if you have two
larger apps actively running at once will it degrade much.

This will be pretty much essential to cover the uBee and the N8VEM-2.
Kernel/bank32k.c
Kernel/swap.c