lowlevel-6809: Do not clobber CC on syscall SWI exit
authorTormod Volden <debian.tormod@gmail.com>
Sun, 17 May 2015 16:38:34 +0000 (18:38 +0200)
committerAlan Cox <alan@linux.intel.com>
Mon, 18 May 2015 13:03:33 +0000 (14:03 +0100)
commitad2737755ec6e37e3f060eced77b44b7254bb4a1
treea5a6ec42e1edcf0b1226a759df59cbdef85e99f9
parent5205dd55913d296b359b019645cf555ef3eea70f
lowlevel-6809: Do not clobber CC on syscall SWI exit

In particular the interrupt masks were overwritten and in some
cases interrupts were disabled after returning from a syscall.

Rewrite the SWI interface to only report error through D and X.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/lowlevel-6809.s
Library/libs/fuzix6809/syscall6809.s