dragon32-nx: Preserve U and Y during task switching
authorTormod Volden <debian.tormod@gmail.com>
Mon, 20 Apr 2015 21:22:48 +0000 (23:22 +0200)
committerAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 22:11:47 +0000 (23:11 +0100)
commitf16cbe8a69b45842f3db6bab592392f3c5a19aa9
tree342acff39475397aa0c531ff785f18bad7759cc4
parent3a943483c495b3ba82ebc76e5068ee1dd0d271c6
dragon32-nx: Preserve U and Y during task switching

Although we were not modifying them in our assembly routines,
the C code around depend on these registers (gcc-6809 expects
them to be preserved across function calls), so when a process
is switched in it needs the same U and Y as when it was switched
out, whether by switchout or fork.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/platform-dragon-nx32/tricks.s