65c816: fix interrupt return path for the kernel case
authorAlan Cox <alan@linux.intel.com>
Sun, 24 Sep 2017 22:57:46 +0000 (23:57 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 24 Sep 2017 22:57:46 +0000 (23:57 +0100)
Was pulling A as 8 not 16bit, grrr.

With this fixed we can try (and fail) to mount a rootfs, but we are messing
something up as bootdev: 0 return gives us a psleep: voododo panic.

Kernel/lowlevel-65c816.s

index f645b24..4be0465 100644 (file)
@@ -452,6 +452,9 @@ join_interrupt_path:
        phx
        pld
 
+       rep     #$20
+       .a16
+
        ply
        plx
        pla