Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2011 02:16:13 +0200
From:      Robert Millan <rmh@debian.org>
To:        freebsd-mips@freebsd.org
Subject:   [PATCH] Fix initialization of i8259 controller on MALTA
Message-ID:  <CAOfDtXMgw%2BTa7=-uDz-O8xVFxAmQqREM7NMpAwgXMzr8mxbNeg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--90e6ba6e88eab2c3c304a8108e31
Content-Type: text/plain; charset=UTF-8

Hi,

i8259 controller is initialized incorrectly on MALTA.  It writes mask
bits to control register and control bits to mask register.

The former causes ICW1_RESET|ICW1_LTIM combination to be written to
control register, which on QEMU results in "level sensitive irq not
supported" error.

-- 
Robert Millan

--90e6ba6e88eab2c3c304a8108e31
Content-Type: text/plain; charset=US-ASCII; name="malta_i8059.diff"
Content-Disposition: attachment; filename="malta_i8059.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gq4eb4ok0

CkZpeCBpbml0aWFsaXphdGlvbiBvZiBpODI1OSBjb250cm9sbGVyLiAgT3Bwb3NpdGUgc2lkZSBp
cyBpbgpxZW11LTAuMTQuMStkZnNnL2h3L2k4MjU5LmM6IHBpY19pb3BvcnRfd3JpdGUoKQoKLS0t
IGEvc3lzL21pcHMvbWFsdGEvZ3RfcGNpLmMKKysrIGIvc3lzL21pcHMvbWFsdGEvZ3RfcGNpLmMK
QEAgLTMyNiwxNSArMzI2LDE1IEBACiAJICAgIElDVzRfODA4Nik7CiAKIAkvKiBtYXNrIGFsbCBp
bnRlcnJ1cHRzICovCi0JYnVzX3NwYWNlX3dyaXRlXzEoc2MtPnNjX3N0LCBzYy0+c2NfaW9oX2lj
dTEsIDAsCisJYnVzX3NwYWNlX3dyaXRlXzEoc2MtPnNjX3N0LCBzYy0+c2NfaW9oX2ljdTEsIDEs
CiAJICAgIHNjLT5zY19pbWFzayAmIDB4ZmYpOwogCiAJLyogZW5hYmxlIHNwZWNpYWwgbWFzayBt
b2RlICovCi0JYnVzX3NwYWN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