trs80m1: make trs80-bank more flexible
authorAlan Cox <alan@linux.intel.com>
Thu, 5 Jul 2018 12:01:40 +0000 (13:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 5 Jul 2018 12:01:40 +0000 (13:01 +0100)
commit8ef3d99d8c03b414364f58b736df794d95c4a6ed
tree5c213574bfea60fc789effaa8beac1eb94a6b1b3
parent30f23d5e341cd2f3a85224d56162f19f5fe4b389
trs80m1: make trs80-bank more flexible

Rework trs80-bank so that anything that can be represented by

out someport, someconst - kernel bank 1
out someport, someconst - kernel bank 2

out someport, value - user banks

Can be handled with ease.

This code also adds selector support as the second bank type and others can now
be added without much trouble. It's not the whole story as the fork() code
also needs changing and the fast copier is a bit trickier.
Kernel/platform-trs80m1/discard.c
Kernel/platform-trs80m1/trs80-bank.s
Kernel/platform-trs80m1/trs80.h
Kernel/platform-trs80m1/trs80.s