sunrise: redo the bounce buffer logic
authorAlan Cox <alan@linux.intel.com>
Sun, 7 Apr 2019 12:38:16 +0000 (13:38 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 7 Apr 2019 12:38:16 +0000 (13:38 +0100)
commit3317a9d9b7da0527c3b8b53a23944f67fa112585
treebcc489c28da923dc9e18ee0e156963b75b72a8e9
parentbf7b00c7cd47e474406f301f01888a5dc702ce67
sunrise: redo the bounce buffer logic

We can't just use tmpbuf because there might not be a free buffer and we'd
then get into a mess recursing through our I/O subystem. Instead grab a bit
of spare high memory for the moment.

Once the buffer reclaim logic is added we will turn discard and friends into
buffers but keep the last 512 bytes before FFFF as a bounce buffer that drivers
can share.

(FFFF itself is slot switching so magic and reserved)
Kernel/platform-msx1/devide_sunrise.c
Kernel/platform-msx1/main.c
Kernel/platform-msx1/msx.h