From: David Woodhouse Date: Thu, 10 Jul 2008 08:53:39 +0000 Subject: Re: [PATCH] dsp56k: use request_firmware Message-Id: <1215680019.11567.242.camel@pmac.infradead.org> List-Id: References: <1215253496.7816.7.camel@jaswinder.satnam> <1215357224.2817.2.camel@jaswinder.satnam> <43A34816-3B93-4D05-AE0A-65C0FBF35589@nocrew.org> <1215358732.2817.11.camel@jaswinder.satnam> <1215363247.3189.113.camel@shinybook.infradead.org> <35647D7D-85D1-4308-B3A1-63CDCC3F14F7@nocrew.org> <1215608750.11567.177.camel@pmac.infradead.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Fredrik Noring Cc: Jaswinder Singh , LKML , kernelnewbies , kernel-janitors , Alan Cox , Lars Brinkhoff , Tomas =?ISO-8859-1?Q?Sk=E4re?= On Thu, 2008-07-10 at 09:38 +0200, Fredrik Noring wrote: > Hi David, > > 9 jul 2008 kl. 15.05 skrev David Woodhouse: > > It is in fact identical. Disassembly with the tools found on > > sourceforge > > was fun, since they have endianness bugs, don't recognise the 'JMP' > > which was the first instruction, and need each 3-byte instruction in > > the > > binary to be prefixed with a zero byte to make it 4 bytes. But after > > sorting that out and going through it instruction by instruction, it > > really does seem to match. > > Heh. Amazing. > > [ I think the code can be simplified: It currently copies itself to a > high program memory location, but this is not necessary because DSP > soft reset was never implemented (the reset would have been trapped by > the code, in order to load a new program). The driver instead power- > cycles the DSP every time a new program is loaded. ] I did wonder about that. But since we can't test, we're not going to touch. Better to keep the assembler code which precisely matches the known-good binary. -- dwmw2