Re: Amiga, serial and SYSRQ

Paolo Pisati
2024-05-21T17:56:12Z

On Tue, May 21, 2024 at 09:07:33AM +0200, Geert Uytterhoeven wrote:
>
> I guess the system would boot if you hack arch/m68k/amiga/amiints.c
> to never enable IRQ_AMIGA_PORTS in amiga_custom.intena, but then you
> would also lose the ability to use e.g. the builtin A1200 IDE.

You probably meant arch/m68k/amiga/cia.c since:

diff --git a/arch/m68k/amiga/cia.c b/arch/m68k/amiga/cia.c
index b9aee983e6f4..89dc2e8a2965 100644
--- a/arch/m68k/amiga/cia.c
+++ b/arch/m68k/amiga/cia.c
@@ -150,6 +150,7 @@ static void auto_irq_enable(struct irq_data *data)
{
switch (data->irq) {
case IRQ_AUTO_2:
+ break;
amiga_custom.intena = IF_SETCLR | IF_PORTS;
break;
case IRQ_AUTO_6:

made my system finally boot:

https://dpaste.org/ZnYP5

It's definitely $something of the Warp1260 board triggering that interrupt, and we
need a way to disable it.

> Reverse-engineering the AmigaOS interrupt handlers for the board may
> also help.

I hope the board manufacturer is willing to help us out here (added them in cc:) - but
just in case, i read a bit about Amiga interrupts today, and it appears
i'll have to disassemble the handler starting from $6c($VBR).
--
bye,
p.